mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-15 07:36:15 +09:00
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>
This commit is contained in:
parent
e8260cb25a
commit
50f87ca556
|
@ -772,8 +772,8 @@ static int mpc8220_fec_recv (struct eth_device *dev)
|
||||||
frame = (NBUF *) pRbd->dataPointer;
|
frame = (NBUF *) pRbd->dataPointer;
|
||||||
frame_length = pRbd->dataLength - 4;
|
frame_length = pRbd->dataLength - 4;
|
||||||
|
|
||||||
#if (0)
|
/* DEBUG code */
|
||||||
{
|
if (_DEBUG) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
printf ("recv data hdr:");
|
printf ("recv data hdr:");
|
||||||
|
@ -781,7 +781,7 @@ static int mpc8220_fec_recv (struct eth_device *dev)
|
||||||
printf ("%x ", *(frame->head + i));
|
printf ("%x ", *(frame->head + i));
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
/*
|
/*
|
||||||
* Fill the buffer and pass it to upper layers
|
* Fill the buffer and pass it to upper layers
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user