]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
drivers/net/ns8382x.c: fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Sat, 29 Oct 2011 09:37:34 +0000 (09:37 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Nov 2011 19:38:49 +0000 (20:38 +0100)
commit675b46bbac183b33a69c55b2c0dcc76ff02f4567
tree6270de2d661e701128f56ec43cb7c848b80243c7
parenta9f4fc3fe571cc99260b063ad0ff291d31bafed0
drivers/net/ns8382x.c: fix GCC 4.6 build warnings

Fix:
ns8382x.c: In function 'ns8382x_check_duplex':
ns8382x.c:704:6: warning: variable 'hun' set but not used
[-Wunused-but-set-variable]

To fix this, we get rid of the NS8382X_DEBUG code and use standard
debug() instead.

This will now trigger a so far undetected warning:
ns8382x.c:780:2: warning: format '%X' expects argument of type
'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]

Fix that, too.

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