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:13:26 +0000 (09:13 +0100)
commit8cec125035a53bd6276837bcc065b5c978bae334
tree85f5bdd9cd70f061dd2cac25e7a0367db68f91d4
parent94e415e7377d7899425451371e11d8129127d459
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