]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45105d71c1a023ea4dc826def523929a46651131
treefb918164c93bdae16f01fb4cf6823cb98fb875dd
parentacbfad4fc56b1441565992846f21ae94950398cf
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