amiflop: clean up on errors during setup
authorOmar Sandoval <osandov@fb.com>
Thu, 11 Oct 2018 19:20:46 +0000 (12:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Oct 2018 15:49:47 +0000 (09:49 -0600)
commit53d0f8dbde89cf6c862c7a62e00c6123e02cba41
tree436a63ebe6331645ccbdd33d8e5be4cf46b8773a
parentc87228f16f0acdf242dee62f139013212208473f
amiflop: clean up on errors during setup

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>
drivers/block/amiflop.c