From: weiping zhang Date: Fri, 18 Aug 2017 15:54:46 +0000 (+0800) Subject: block: remove blk_free_devt in add_partition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47570848f0864374dec4accce68d23fc0eaac0b2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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); }