diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-04 15:55:55 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:16:39 +0100 |
commit | 50f87ca5560a50693ab89fa4e58a24036300e62b (patch) | |
tree | afb5be3814513042d994e85ca12bf54045851847 /arch/powerpc/cpu/mpc8220 | |
parent | e8260cb25aae7051bf0cce91814b9d606d1d097e (diff) | |
download | u-boot-imx-50f87ca5560a50693ab89fa4e58a24036300e62b.zip u-boot-imx-50f87ca5560a50693ab89fa4e58a24036300e62b.tar.gz u-boot-imx-50f87ca5560a50693ab89fa4e58a24036300e62b.tar.bz2 |
mpc8220/fec.c: Fix GCC 4.6 build warning
Fix:
fec.c: In function 'mpc8220_fec_recv':
fec.c:733:8: warning: variable 'frame' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch/powerpc/cpu/mpc8220')
-rw-r--r-- | arch/powerpc/cpu/mpc8220/fec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/cpu/mpc8220/fec.c b/arch/powerpc/cpu/mpc8220/fec.c index bcda8a2..2053fea 100644 --- a/arch/powerpc/cpu/mpc8220/fec.c +++ b/arch/powerpc/cpu/mpc8220/fec.c @@ -772,8 +772,8 @@ static int mpc8220_fec_recv (struct eth_device *dev) frame = (NBUF *) pRbd->dataPointer; frame_length = pRbd->dataLength - 4; -#if (0) - { + /* DEBUG code */ + if (_DEBUG) { int i; printf ("recv data hdr:"); @@ -781,7 +781,7 @@ static int mpc8220_fec_recv (struct eth_device *dev) printf ("%x ", *(frame->head + i)); printf ("\n"); } -#endif + /* * Fill the buffer and pass it to upper layers */ |