Commit 6ff26020 authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] smctr - get rid of MOD_INC/DEC

Get rid of warning now that module refcounting now done by network code not drivers.

Not tested on real hardware.
parent 4576b4fa
......@@ -729,10 +729,6 @@ static int smctr_close(struct net_device *dev)
netif_stop_queue(dev);
#ifdef MODULE
MOD_DEC_USE_COUNT;
#endif
tp->cleanup = 1;
/* Check to see if adapter is already in a closed state. */
......@@ -3490,10 +3486,6 @@ static int smctr_open(struct net_device *dev)
if(err < 0)
return (err);
#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
return (err);
}
......
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