diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2013-03-01 22:45:45 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-03-01 22:45:45 +0000 |
commit | d2ce70a119f844225c10f133f8b957d540027b0f (patch) | |
tree | 3a2cad94248674b3115dbefa49eeab07e3f5888f | |
parent | f13945d75730081830b6f3360266950e2b7c9067 (diff) | |
download | linux-d2ce70a119f844225c10f133f8b957d540027b0f.tar.bz2 |
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.c | 1 |
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; } |