OSDN Git Service

ionic: remove unused variable
authorShannon Nelson <snelson@pensando.io>
Tue, 1 Sep 2020 18:20:23 +0000 (11:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2020 22:47:01 +0000 (15:47 -0700)
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>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c

index 060aaf0..b5f8d82 100644 (file)
@@ -670,7 +670,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) {
@@ -679,7 +678,6 @@ void ionic_tx_empty(struct ionic_queue *q)
                ionic_tx_clean(q, desc_info, NULL, desc_info->cb_arg);
                desc_info->cb = NULL;
                desc_info->cb_arg = NULL;
-               done++;
        }
 }