Commit 2f1b4edb authored by Kamal Heib's avatar Kamal Heib Committed by Greg Kroah-Hartman

staging: mt7621-eth: Remove unused variable

Remove unused variable 'condition' which was set but not used.
Signed-off-by: default avatarKamal Heib <kamalheib1@gmail.com>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a06e6fb
...@@ -1194,7 +1194,6 @@ static int mtk_qdma_tx_poll(struct mtk_eth *eth, int budget, bool *tx_again) ...@@ -1194,7 +1194,6 @@ static int mtk_qdma_tx_poll(struct mtk_eth *eth, int budget, bool *tx_again)
int total = 0, done[MTK_MAX_DEVS]; int total = 0, done[MTK_MAX_DEVS];
unsigned int bytes[MTK_MAX_DEVS]; unsigned int bytes[MTK_MAX_DEVS];
u32 cpu, dma; u32 cpu, dma;
static int condition;
int i; int i;
memset(done, 0, sizeof(done)); memset(done, 0, sizeof(done));
...@@ -1219,10 +1218,8 @@ static int mtk_qdma_tx_poll(struct mtk_eth *eth, int budget, bool *tx_again) ...@@ -1219,10 +1218,8 @@ static int mtk_qdma_tx_poll(struct mtk_eth *eth, int budget, bool *tx_again)
tx_buf = mtk_desc_to_tx_buf(ring, desc); tx_buf = mtk_desc_to_tx_buf(ring, desc);
skb = tx_buf->skb; skb = tx_buf->skb;
if (!skb) { if (!skb)
condition = 1;
break; break;
}
if (skb != (struct sk_buff *)DMA_DUMMY_DESC) { if (skb != (struct sk_buff *)DMA_DUMMY_DESC) {
bytes[mac] += skb->len; bytes[mac] += skb->len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment