Skip to contentSkip to conversation

cpmac: remove unused variable.

PATCH Applied Florian Fainelli 2 participants 2 messages May 31, 2009 – Jun 1, 2009

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

PATCH 1/2 cpmac: remove unused variable.

This patch removes the unused variables in
cpmac_hw_error, cpmac_tx_timeout and cpmac_probe.

---

drivers/net/cpmac.c +1 -3
index cfb4198..08e2f67 100644
@@ -731,7 +731,6 @@ static void cpmac_clear_tx(struct net_device *dev)
 
 static void cpmac_hw_error(struct work_struct *work)
 {
-	int i;
 	struct cpmac_priv *priv =
 		container_of(work, struct cpmac_priv, reset_work);
 
@@ -818,7 +817,6 @@ static irqreturn_t cpmac_irq(int irq, void *dev_id)
 
 static void cpmac_tx_timeout(struct net_device *dev)
 {
-	int i;
 	struct cpmac_priv *priv = netdev_priv(dev);
 
 	spin_lock(&priv->lock);
@@ -1110,7 +1108,7 @@ static int external_switch;
 
 static int __devinit cpmac_probe(struct platform_device *pdev)
 {
-	int rc, phy_id, i;
+	int rc, phy_id;
 	char *mdio_bus_id = "0";
 	struct resource *mem;
 	struct cpmac_priv *priv;