]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drivers/block/floppy.c: hoist assigns from if()s, neatening
authorJoe Perches <joe@perches.com>
Wed, 10 Mar 2010 23:20:48 +0000 (15:20 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:29 +0000 (15:52 -0800)
commitd7b2b2ecd88d06ae212d069a4e187ab690b1636f
treeafcabe5b53d0ade068e9dc2464ce7d3387dbc11a
parent045f98363080ddbbcef6b8b8306ec58a818406a0
drivers/block/floppy.c: hoist assigns from if()s, neatening

Move assigns above if()s
Remove unnecessary parentheses from returns
Use a temporary for a duplicated test

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/floppy.c