aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2011-11-12 23:34:23 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-13 16:03:53 -0500
commitad756594a8d88ffc048d14b8d5c02971e08856ce (patch)
treee3d72bbf1a4d7e269cd6240a430923a1666b20f4 /drivers
parentf233cafe1a9df8de75f446bc6f5dc715cc564325 (diff)
bnx2x: remove unused variable
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index 1ace946e1c33..f946a6ea8909 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -1094,13 +1094,11 @@ static void bnx2x_free_tx_skbs(struct bnx2x *bp)
1094 for_each_cos_in_tx_queue(fp, cos) { 1094 for_each_cos_in_tx_queue(fp, cos) {
1095 struct bnx2x_fp_txdata *txdata = &fp->txdata[cos]; 1095 struct bnx2x_fp_txdata *txdata = &fp->txdata[cos];
1096 1096
1097 u16 bd_cons = txdata->tx_bd_cons;
1098 u16 sw_prod = txdata->tx_pkt_prod; 1097 u16 sw_prod = txdata->tx_pkt_prod;
1099 u16 sw_cons = txdata->tx_pkt_cons; 1098 u16 sw_cons = txdata->tx_pkt_cons;
1100 1099
1101 while (sw_cons != sw_prod) { 1100 while (sw_cons != sw_prod) {
1102 bd_cons = bnx2x_free_tx_pkt(bp, txdata, 1101 bnx2x_free_tx_pkt(bp, txdata, TX_BD(sw_cons));
1103 TX_BD(sw_cons));
1104 sw_cons++; 1102 sw_cons++;
1105 } 1103 }
1106 } 1104 }