Commit 5b1d8e81 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: remove unused variable

Remove a vestigial variable.

Pointed out in https://lore.kernel.org/lkml/20200806143735.GA9232@xsang-OptiPlex-9020/Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4280948
...@@ -670,7 +670,6 @@ void ionic_tx_flush(struct ionic_cq *cq) ...@@ -670,7 +670,6 @@ void ionic_tx_flush(struct ionic_cq *cq)
void ionic_tx_empty(struct ionic_queue *q) void ionic_tx_empty(struct ionic_queue *q)
{ {
struct ionic_desc_info *desc_info; struct ionic_desc_info *desc_info;
int done = 0;
/* walk the not completed tx entries, if any */ /* walk the not completed tx entries, if any */
while (q->head_idx != q->tail_idx) { while (q->head_idx != q->tail_idx) {
...@@ -679,7 +678,6 @@ void ionic_tx_empty(struct ionic_queue *q) ...@@ -679,7 +678,6 @@ void ionic_tx_empty(struct ionic_queue *q)
ionic_tx_clean(q, desc_info, NULL, desc_info->cb_arg); ionic_tx_clean(q, desc_info, NULL, desc_info->cb_arg);
desc_info->cb = NULL; desc_info->cb = NULL;
desc_info->cb_arg = NULL; desc_info->cb_arg = NULL;
done++;
} }
} }
......
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