4xx_enet.c: fix GCC 4.6 build warnings
PATCH 1/1 4xx_enet.c: fix GCC 4.6 build warnings
Fix:4xx_enet.c: In function 'enet_rcv':
4xx_enet.c:1772:21: warning: variable 'ef_ptr' set but not used [-Wunused-but-set-variable]
Signed-off-by Wolfgang Denk <[email protected]>
Cc Stefan Roese <[email protected]>
--- drivers/net/4xx_enet.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/net/4xx_enet.c +0 -3
@@ -1769,7 +1769,6 @@ static void emac_err (struct eth_device *dev, unsigned long isr)*-----------------------------------------------------------------------------*/ static void enet_rcv (struct eth_device *dev,unsigned long malisr) { -struct enet_frame *ef_ptr;unsigned long data_len;unsigned long rx_eob_isr;EMAC_4XX_HW_PST hw_p = dev->priv;
@@ -1828,8 +1827,6 @@ static void enet_rcv (struct eth_device *dev, unsigned long malisr) }else { hw_p->stats.rx_frames++; hw_p->stats.rx += data_len; - ef_ptr = (struct enet_frame *) hw_p->rx[i]. - data_ptr;#ifdef INFO_4XX_ENET hw_p->stats.pkts_rx++;#endif
Signature · 1 line
1.7.6.4
Wolfgang Denk
AppliedPATCH 1/1 4xx_enet.c: fix GCC 4.6 build warnings
Dear Wolfgang Denk,
Quoted 10 lines · In message <[email protected]> you wrote:
Fix:
4xx_enet.c: In function 'enet_rcv':
4xx_enet.c:1772:21: warning: variable 'ef_ptr' set but not used [-Wunused-but-set-variable]Signed-off-by Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>--- drivers/net/4xx_enet.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The only way you could make a happy marriage is by cuttin' their heads off as soon as they say `I do', yes? You can't make happi- ness... - Terry Pratchett, _Witches Abroad_