public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80ba85
)
dragon-nx32: Avoid variable shadowing in devfd.c
author
Tormod Volden
<debian.tormod@gmail.com>
Sat, 21 May 2016 21:36:52 +0000
(23:36 +0200)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 22 May 2016 19:07:29 +0000
(20:07 +0100)
If we jump to "bad" we can report the error code and
not an undefined value (which gives gcc warning).
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon-nx32/devfd.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-dragon-nx32/devfd.c
b/Kernel/platform-dragon-nx32/devfd.c
index
c335e4b
..
c1c5417
100644
(file)
--- a/
Kernel/platform-dragon-nx32/devfd.c
+++ b/
Kernel/platform-dragon-nx32/devfd.c
@@
-64,7
+64,7
@@
static int fd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
fd_motor_busy(); /* Touch the motor timer first so we don't
go and turn it off as we are doing this */
if (fd_selected != minor) {
-
uint8_t
err = fd_motor_on(selmap[minor]);
+ err = fd_motor_on(selmap[minor]);
if (err)
goto bad;
}