From: Wang Sheng-Hui 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 Signed-off-by: Alasdair G Kergon --- drivers/md/dm-table.c | 1 - 1 file changed, 1 deletion(-) Index: linux/drivers/md/dm-table.c =================================================================== --- linux.orig/drivers/md/dm-table.c +++ linux/drivers/md/dm-table.c @@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **re if (alloc_targets(t, num_targets)) { kfree(t); - t = NULL; return -ENOMEM; }