amiflop: clean up on errors during setup
authorOmar Sandoval <osandov@fb.com>
Thu, 11 Oct 2018 19:20:46 +0000 (12:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:16:25 +0000 (09:16 +0100)
commit45f89cf0f329ac86e59ec18e163f6e5cb274dd49
tree8e5940a35a50e4d7e5b09864bc0f971497ff5329
parent4043bc0f634bf349da5612e87e189a6d71bad504
amiflop: clean up on errors during setup

[ Upstream commit 53d0f8dbde89cf6c862c7a62e00c6123e02cba41 ]

The error handling in fd_probe_drives() doesn't clean up at all. Fix it
up in preparation for converting to blk-mq. While we're here, get rid of
the commented out amiga_floppy_remove().

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/amiflop.c