summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorweiping zhang <zhangweiping@didichuxing.com>2017-08-18 23:54:46 +0800
committerJens Axboe <axboe@kernel.dk>2017-08-24 08:26:57 -0600
commit47570848f0864374dec4accce68d23fc0eaac0b2 (patch)
treed56672293b49811a0e04874a726093ebaf824c9f /block
parent97e05463e0dfa8df709009625302fa5c5049b016 (diff)
downloadlinux-47570848f0864374dec4accce68d23fc0eaac0b2.tar.bz2
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')
-rw-r--r--block/partition-generic.c1
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);
}