summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2013-03-01 23:45:45 +0100
committerAlasdair G Kergon <agk@redhat.com>2013-03-01 23:45:45 +0100
commitd2ce70a119f844225c10f133f8b957d540027b0f (patch)
tree3a2cad94248674b3115dbefa49eeab07e3f5888f /drivers/md/dm-table.c
parentdm thin: support a non power of 2 discard_granularity (diff)
downloadlinux-d2ce70a119f844225c10f133f8b957d540027b0f.tar.xz
linux-d2ce70a119f844225c10f133f8b957d540027b0f.zip
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>
Diffstat (limited to 'drivers/md/dm-table.c')
-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,
if (alloc_targets(t, num_targets)) {
kfree(t);
- t = NULL;
return -ENOMEM;
}