Skip to contentSkip to conversation

liquidio: remove an unused variable

PATCH In review Dan Carpenter 1 participant 1 message Jun 18, 2016

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

PATCH 2/3 liquidio: remove an unused variable

We don't use "i" in this function.

drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -2
index 715ddfa..1126422 100644
@@ -2354,7 +2354,7 @@ static void liquidio_set_mcast_list(struct net_device *netdev)
 	struct octnic_ctrl_pkt nctrl;
 	struct netdev_hw_addr *ha;
 	u64 *mc;
-	int ret, i;
+	int ret;
 	int mc_count = min(netdev_mc_count(netdev), MAX_OCTEON_MULTICAST_ADDR);
 
 	memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt));
@@ -2370,7 +2370,6 @@ static void liquidio_set_mcast_list(struct net_device *netdev)
 	nctrl.cb_fn = liquidio_link_ctrl_cmd_completion;
 
 	/* copy all the addresses into the udd */
-	i = 0;
 	mc = &nctrl.udd[0];
 	netdev_for_each_mc_addr(ha, netdev) {
 		*mc = 0;