Commit 2279a9da authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

[netdrvr gt961000eth] remove useless MOD_{INC,DEC}_USE_COUNT

*grr* - this one slipped in after my last round of audits it seems.
parent c7e6e052
...@@ -1070,22 +1070,18 @@ gt96100_open(struct net_device *dev) ...@@ -1070,22 +1070,18 @@ gt96100_open(struct net_device *dev)
{ {
int retval; int retval;
MOD_INC_USE_COUNT;
dbg(2, "%s: dev=%p\n", __FUNCTION__, dev); dbg(2, "%s: dev=%p\n", __FUNCTION__, dev);
// Initialize and startup the GT-96100 ethernet port // Initialize and startup the GT-96100 ethernet port
if ((retval = gt96100_init(dev))) { if ((retval = gt96100_init(dev))) {
err("error in gt96100_init\n"); err("error in gt96100_init\n");
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
MOD_DEC_USE_COUNT;
return retval; return retval;
} }
if ((retval = request_irq(dev->irq, &gt96100_interrupt, if ((retval = request_irq(dev->irq, &gt96100_interrupt,
SA_SHIRQ, dev->name, dev))) { SA_SHIRQ, dev->name, dev))) {
err("unable to get IRQ %d\n", dev->irq); err("unable to get IRQ %d\n", dev->irq);
MOD_DEC_USE_COUNT;
return retval; return retval;
} }
...@@ -1106,8 +1102,6 @@ gt96100_close(struct net_device *dev) ...@@ -1106,8 +1102,6 @@ gt96100_close(struct net_device *dev)
} }
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
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