floppy: remove dr, reuse drive on do_floppy_init
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Tue, 30 Oct 2012 07:36:07 +0000 (08:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Oct 2012 07:36:07 +0000 (08:36 +0100)
commit1a4ae43e4feb570901667782678772fd31c1b125
treefb918164c93bdae16f01fb4cf6823cb98fb875dd
parent8d3ab4ebfd7435bc248873de47d0ca23076c4973
floppy: remove dr, reuse drive on do_floppy_init

This is a small cleanup, that also may turn error handling of
unitialized disks more readable. We don't need a separate variable to
track allocated disks, remove dr and reuse drive variable instead.

Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c