* [PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in sb1250-mac
@ 2004-02-22 18:58 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-02-22 18:58 UTC (permalink / raw)
To: netdev
--- 1.8/drivers/net/sb1250-mac.c Sat Jan 10 16:30:29 2004
+++ edited/drivers/net/sb1250-mac.c Sun Feb 22 20:30:54 2004
@@ -2456,8 +2456,6 @@
{
struct sbmac_softc *sc = (struct sbmac_softc *)dev->priv;
- MOD_INC_USE_COUNT;
-
if (debug > 1) {
printk(KERN_DEBUG "%s: sbmac_open() irq %d.\n", dev->name, dev->irq);
}
@@ -2466,10 +2464,8 @@
* map/route interrupt
*/
- if (request_irq(dev->irq, &sbmac_intr, SA_SHIRQ, dev->name, dev)) {
- MOD_DEC_USE_COUNT;
+ if (request_irq(dev->irq, &sbmac_intr, SA_SHIRQ, dev->name, dev))
return -EBUSY;
- }
/*
* Configure default speed
@@ -2791,8 +2787,6 @@
sbdma_emptyring(&(sc->sbm_txdma));
sbdma_emptyring(&(sc->sbm_rxdma));
- MOD_DEC_USE_COUNT;
-
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-22 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 18:58 [PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in sb1250-mac Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).