summaryrefslogtreecommitdiff
path: root/arch/alpha
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-09-04 12:47:28 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-06 19:46:56 -0700
commit99c79eceb152e2ac7f8a81ff55d4a810f730ec7b (patch)
treecadbf51449d9edbf1c0fd7e8b355bf697d7eff0c /arch/alpha
parent8f384c0177a03640312b9cb3638c998b32243b63 (diff)
lan78xx: Fix ladv/radv error handling in lan78xx_link_reset()
net/usb/lan78xx.c: In function ‘lan78xx_link_reset’: net/usb/lan78xx.c:1107: warning: comparison is always false due to limited range of data type net/usb/lan78xx.c:1111: warning: comparison is always false due to limited range of data type Assigning return values that can be negative error codes to "u16" variables makes them positive, ignoring the errors. Hence use "int" instead. Drop the "unlikely"s (unlikely considered harmful) and propagate the actual error values instead of overriding them to -EIO while we're at it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions