aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2013-03-01 17:45:45 -0500
committerAlasdair G Kergon <agk@redhat.com>2013-03-01 17:45:45 -0500
commitd2ce70a119f844225c10f133f8b957d540027b0f (patch)
tree3a2cad94248674b3115dbefa49eeab07e3f5888f
parentf13945d75730081830b6f3360266950e2b7c9067 (diff)
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 <shhuiw@gmail.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
-rw-r--r--drivers/md/dm-table.c1
1 files changed, 0 insertions, 1 deletions
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,
217 217
218 if (alloc_targets(t, num_targets)) { 218 if (alloc_targets(t, num_targets)) {
219 kfree(t); 219 kfree(t);
220 t = NULL;
221 return -ENOMEM; 220 return -ENOMEM;
222 } 221 }
223 222