OSDN Git Service

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>
Thu, 28 Nov 2019 17:25:39 +0000 (18:25 +0100)
commit1282a5bda0e1fa73dfc0a668f511d6f9cd614845
treeb28e5153c574b141e33d5f5e0eba3257d7094082
parent5ca4fc0125b88ec108c5493cdcc0d3ff5f54ad5a
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