Commit 6571dbda authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

[PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in wanpipe

wanpipe_open/close are used by sub-modules in their open/close handlers,
thus locking sdlamain into memory by using the exports
parent 647342a7
...@@ -1160,7 +1160,6 @@ STATIC irqreturn_t sdla_isr (int irq, void* dev_id, struct pt_regs *regs) ...@@ -1160,7 +1160,6 @@ STATIC irqreturn_t sdla_isr (int irq, void* dev_id, struct pt_regs *regs)
void wanpipe_open (sdla_t* card) void wanpipe_open (sdla_t* card)
{ {
++card->open_cnt; ++card->open_cnt;
MOD_INC_USE_COUNT;
} }
/*============================================================================ /*============================================================================
...@@ -1172,7 +1171,6 @@ void wanpipe_open (sdla_t* card) ...@@ -1172,7 +1171,6 @@ void wanpipe_open (sdla_t* card)
void wanpipe_close (sdla_t* card) void wanpipe_close (sdla_t* card)
{ {
--card->open_cnt; --card->open_cnt;
MOD_DEC_USE_COUNT;
} }
/*============================================================================ /*============================================================================
......
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