mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
dm table: remove superfluous variable reset
If allocation fails, the local var *t is not used any more after kfree. Don't need to reset it to NULL. Remove the unnecesary NULL set here. Signed-off-by: Wang Sheng-Hui <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
This commit is contained in:
parent
f13945d757
commit
d2ce70a119
1 changed files with 0 additions and 1 deletions
|
|
@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **result, fmode_t mode,
|
|||
|
||||
if (alloc_targets(t, num_targets)) {
|
||||
kfree(t);
|
||||
t = NULL;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue