From: Shannon Nelson <snelson@pensando.io>
Date: Tue, 1 Sep 2020 11:20:23 -0700
Subject: ionic: remove unused variable
Patch-mainline: v5.10-rc1
Git-commit: 5b1d8e81a2166bec8970a1c4f1bc0761866ba83d
References: jsc#SLE-16649
Remove a vestigial variable.
Pointed out in https://lore.kernel.org/lkml/20200806143735.GA9232@xsang-OptiPlex-9020/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 2 --
1 file changed, 2 deletions(-)
--- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c
@@ -663,7 +663,6 @@ void ionic_tx_flush(struct ionic_cq *cq)
void ionic_tx_empty(struct ionic_queue *q)
{
struct ionic_desc_info *desc_info;
- int done = 0;
/* walk the not completed tx entries, if any */
while (q->head_idx != q->tail_idx) {
@@ -672,7 +671,6 @@ void ionic_tx_empty(struct ionic_queue *
ionic_tx_clean(q, desc_info, NULL, desc_info->cb_arg);
desc_info->cb = NULL;
desc_info->cb_arg = NULL;
- done++;
}
}