Commit 7359f964 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

[PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in sb1250-mac

parent bf8f9a5d
...@@ -2456,8 +2456,6 @@ static int sbmac_open(struct net_device *dev) ...@@ -2456,8 +2456,6 @@ static int sbmac_open(struct net_device *dev)
{ {
struct sbmac_softc *sc = (struct sbmac_softc *)dev->priv; struct sbmac_softc *sc = (struct sbmac_softc *)dev->priv;
MOD_INC_USE_COUNT;
if (debug > 1) { if (debug > 1) {
printk(KERN_DEBUG "%s: sbmac_open() irq %d.\n", dev->name, dev->irq); printk(KERN_DEBUG "%s: sbmac_open() irq %d.\n", dev->name, dev->irq);
} }
...@@ -2466,10 +2464,8 @@ static int sbmac_open(struct net_device *dev) ...@@ -2466,10 +2464,8 @@ static int sbmac_open(struct net_device *dev)
* map/route interrupt * map/route interrupt
*/ */
if (request_irq(dev->irq, &sbmac_intr, SA_SHIRQ, dev->name, dev)) { if (request_irq(dev->irq, &sbmac_intr, SA_SHIRQ, dev->name, dev))
MOD_DEC_USE_COUNT;
return -EBUSY; return -EBUSY;
}
/* /*
* Configure default speed * Configure default speed
...@@ -2791,8 +2787,6 @@ static int sbmac_close(struct net_device *dev) ...@@ -2791,8 +2787,6 @@ static int sbmac_close(struct net_device *dev)
sbdma_emptyring(&(sc->sbm_txdma)); sbdma_emptyring(&(sc->sbm_txdma));
sbdma_emptyring(&(sc->sbm_rxdma)); sbdma_emptyring(&(sc->sbm_rxdma));
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment