aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2011-11-03 13:58:16 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:39:00 +0800
commitbb3ae5ab8cd632b02e5826a6a42a92594d96644b (patch)
tree6530dbb40041553cbdabf6e5738e30cfd1550086
parent00bf363ca99d5ce160ad506e5723d7ffdf0589f1 (diff)
downloadlinux-linaro-bb3ae5ab8cd632b02e5826a6a42a92594d96644b.tar.gz
ENGR00161312 - FEC: fix build warning
fix build warning: > drivers/net/fec.c:435: warning: unused variable 'estatus' Signed-off-by: Fugang Duan <B38611@freescale.com>
-rw-r--r--drivers/net/fec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 4e793d6c1e7..fd519571cbb 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -432,7 +432,6 @@ fec_enet_tx(struct net_device *dev)
struct fec_ptp_private *fpp;
struct bufdesc *bdp;
unsigned short status;
- unsigned long estatus;
struct sk_buff *skb;
fep = netdev_priv(dev);
@@ -478,8 +477,7 @@ fec_enet_tx(struct net_device *dev)
#if defined(CONFIG_ENHANCED_BD)
if (fep->ptimer_present) {
- estatus = bdp->cbd_esc;
- if (estatus & BD_ENET_TX_TS)
+ if (bdp->cbd_esc & BD_ENET_TX_TS)
fec_ptp_store_txstamp(fpp, skb, bdp);
}
#elif defined(CONFIG_IN_BAND)