Skip to contentSkip to conversation

cxgb4: Remove redundant code in t4_uld_clean_up()

PATCH Applied Ganesh Goudar 2 participants 2 messages Feb 16, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxgb4: Remove redundant code in t4_uld_clean_up()

Remove variable rxq_info and also remove redundant assignment to it.

---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c +0 -2
index 36105b6..d0868c2 100644
@@ -591,7 +591,6 @@ void t4_uld_mem_free(struct adapter *adap)
 
 void t4_uld_clean_up(struct adapter *adap)
 {
-	struct sge_uld_rxq_info *rxq_info;
 	unsigned int i;
 
 	if (!adap->uld)
@@ -599,7 +598,6 @@ void t4_uld_clean_up(struct adapter *adap)
 	for (i = 0; i < CXGB4_ULD_MAX; i++) {
 		if (!adap->uld[i].handle)
 			continue;
-		rxq_info = adap->sge.uld_rxq_info[i];
 		if (adap->flags & FULL_INIT_DONE)
 			quiesce_rx_uld(adap, i);
 		if (adap->flags & USING_MSIX)
Signature · 1 line
2.1.0