projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a237942
)
swim: simplify using blk_cleanup_disk() on swim_remove()
author
Luis Chamberlain
<mcgrof@kernel.org>
Mon, 27 Sep 2021 22:02:55 +0000
(15:02 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 18 Oct 2021 20:41:37 +0000
(14:41 -0600)
We can simplify swim_remove() by using one call instead of two,
just as other drivers do. Use that pattern.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link:
https://lore.kernel.org/r/20210927220302.1073499-8-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/swim.c
patch
|
blob
|
history
diff --git
a/drivers/block/swim.c
b/drivers/block/swim.c
index 3911d0833e1b9f80c9e51785e267c758aaeb90c3..868d594760654ea67ca85f08bfe18ec730777144 100644
(file)
--- a/
drivers/block/swim.c
+++ b/
drivers/block/swim.c
@@
-912,9
+912,8
@@
static int swim_remove(struct platform_device *dev)
for (drive = 0; drive < swd->floppy_count; drive++) {
del_gendisk(swd->unit[drive].disk);
- blk_cleanup_
queue(swd->unit[drive].disk->queue
);
+ blk_cleanup_
disk(swd->unit[drive].disk
);
blk_mq_free_tag_set(&swd->unit[drive].tag_set);
- put_disk(swd->unit[drive].disk);
}
unregister_blkdev(FLOPPY_MAJOR, "fd");