dm: cleanup: remove the unnecessary NULL set to the local var *t after kfreed in dm_table_create
PATCH 1/1 dm: cleanup: remove the unnecessary NULL set to the local var *t after kfreed in dm_table_create
If allocation fails, the local var *t is not used any more after kfreed. Don't need to reset it to NULL. Remove the unnecesary NULL set here.
Signed-off-by Wang Sheng-Hui <[email protected]>
--- drivers/md/dm-table.c | 1 - 1 file changed, 1 deletion(-)
drivers/md/dm-table.c +0 -1
@@ -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 ; }
Signature · 1 line
1.7.10.4