From d2ce70a119f844225c10f133f8b957d540027b0f Mon Sep 17 00:00:00 2001 From: Wang Sheng-Hui Date: Fri, 1 Mar 2013 22:45:45 +0000 Subject: 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 Signed-off-by: Alasdair G Kergon --- drivers/md/dm-table.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index daf25d0890b3..c95405d04726 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -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; } -- cgit v1.2.3