diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-08-18 23:54:46 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-24 08:26:57 -0600 |
commit | 47570848f0864374dec4accce68d23fc0eaac0b2 (patch) | |
tree | d56672293b49811a0e04874a726093ebaf824c9f /block/partition-generic.c | |
parent | 97e05463e0dfa8df709009625302fa5c5049b016 (diff) |
block: remove blk_free_devt in add_partition
put_device(pdev) will call pdev->type->release finally, and blk_free_devt
has been called in part_release(), so remove it.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partition-generic.c')
-rw-r--r-- | block/partition-generic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/partition-generic.c b/block/partition-generic.c index 1745a9659517..86e8fe1adcdb 100644 --- a/block/partition-generic.c +++ b/block/partition-generic.c @@ -403,7 +403,6 @@ out_del: device_del(pdev); out_put: put_device(pdev); - blk_free_devt(devt); return ERR_PTR(err); } |