diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-19 08:05:52 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-28 14:33:15 +0200 |
commit | 8b9ab62662048a3274361c7e5f64037c2c133e2c (patch) | |
tree | bda02f692f6d66eb1aad21b60283654bd01d6289 /drivers/block/amiflop.c | |
parent | block: simplify disk shutdown (diff) | |
download | linux-8b9ab62662048a3274361c7e5f64037c2c133e2c.tar.xz linux-8b9ab62662048a3274361c7e5f64037c2c133e2c.zip |
block: remove blk_cleanup_disk
blk_cleanup_disk is nothing but a trivial wrapper for put_disk now,
so remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20220619060552.1850436-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/amiflop.c')
-rw-r--r-- | drivers/block/amiflop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 5a566f2fd533..4c8b2ba579ee 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c @@ -1802,7 +1802,7 @@ static int fd_alloc_disk(int drive, int system) unit[drive].gendisk[system] = disk; err = add_disk(disk); if (err) - blk_cleanup_disk(disk); + put_disk(disk); return err; } |