]> git.sur5r.net Git - u-boot/commit
drivers/net/rtl8139.c: Fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:03 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:47:37 +0000 (22:47 +0100)
commitecc6aa8cf3ca7de0c67f21291fa3f5858934c816
tree0a0e95fc5170918e2ce85a581d1a888c960c5b3a
parent53862da918937ec8ad1f44f8c4862e98d98d0e05
drivers/net/rtl8139.c: Fix GCC 4.6 build warnings

Fix:
rtl8139.c: In function 'rtl8139_probe':
rtl8139.c:256:15: warning: variable 'fullduplex' set but not used
[-Wunused-but-set-variable]
rtl8139.c:256:6: warning: variable 'speed10' set but not used
[-Wunused-but-set-variable]
rtl8139.c: In function 'rtl_transmit':
rtl8139.c:419:16: warning: variable 'txstatus' set but not used
[-Wunused-but-set-variable]

Change code to use new debug macros; also fix the new errors and
warnigns popping up now, like "error: 'to' undeclared" and some
"warning: format '%X' expects argument of type 'unsigned int', but
argument X has type 'long unsigned int'"

Signed-off-by: Wolfgang Denk <wd@denx.de>
drivers/net/rtl8139.c