mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
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>
This commit is contained in:
parent
97e05463e0
commit
47570848f0
@ -403,7 +403,6 @@ out_del:
|
||||
device_del(pdev);
|
||||
out_put:
|
||||
put_device(pdev);
|
||||
blk_free_devt(devt);
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user