Skip to content

Commit

Permalink
cpmac: remove unused variable.
Browse files Browse the repository at this point in the history
This patch removes the unused variables in
cpmac_hw_error, cpmac_tx_timeout and cpmac_probe.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jun 1, 2009
1 parent d1a277c commit 69bd4ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/cpmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 69bd4ae

Please sign in to comment.