[PATCH 6/6] floppy: remove dr, reuse drive on do_floppy_init

2012-08-27 Thread Herton Ronaldo Krzesinski
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 --- drivers/block/floppy.c | 43

[PATCH 6/6] floppy: remove dr, reuse drive on do_floppy_init

2012-08-27 Thread Herton Ronaldo Krzesinski
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.krzesin...@canonical.com ---