diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c index 0aeac31571601a3e5997485762fba9dc593df589..97e79949b35946c32693841ac674ed5ab8223996 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c @@ -402,7 +402,6 @@ static void ionic_rx_fill_cb(void *arg) void ionic_rx_empty(struct ionic_queue *q) { - struct ionic_rxq_sg_desc *sg_desc; struct ionic_desc_info *cur; struct ionic_rxq_desc *desc; unsigned int i; @@ -412,7 +411,6 @@ void ionic_rx_empty(struct ionic_queue *q) desc->addr = 0; desc->len = 0; - sg_desc = cur->sg_desc; for (i = 0; i < cur->npages; i++) { if (likely(cur->pages[i].page)) { ionic_rx_page_free(q, cur->pages[i].page,