]> git.karo-electronics.de Git - karo-tx-linux.git/commit
floppy: remove dr, reuse drive on do_floppy_init
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Mon, 27 Aug 2012 23:56:56 +0000 (20:56 -0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Sep 2012 13:59:11 +0000 (15:59 +0200)
commitbd804635f451df00cfbc24691ca701e580ecc8a5
treef6d4287c5f382c328c023ad25b03488cd7739c36
parent8c6bed0d75f91d26fd19c8fb28c83519fc86e103
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>
drivers/block/floppy.c