]> git.karo-electronics.de Git - karo-tx-linux.git/commit
floppy: use common function to check if floppies can be registered
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Mon, 27 Aug 2012 23:56:55 +0000 (20:56 -0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Sep 2012 13:56:54 +0000 (15:56 +0200)
commit8c6bed0d75f91d26fd19c8fb28c83519fc86e103
tree4b8bbe18ba9e5888ffaf6a7cbd3080831ae94123
parent6932babe88ca5beec02b40db68100fc5ccb5d321
floppy: use common function to check if floppies can be registered

The same checks to see if a drive can be or is registered are
repeated through the code, factor out the checks in a common function
and replace the repeated checks with it.

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