netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in wanpipe
@ 2004-02-22 19:21 Christoph Hellwig
  2004-02-26  5:44 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2004-02-22 19:21 UTC (permalink / raw)
  To: netdev

wanpipe_open/close are used by sub-modules in their open/close handlers,
thus locking sdlamain into memory by using the exports


--- 1.21/drivers/net/wan/sdlamain.c	Mon Sep 22 03:01:11 2003
+++ edited/drivers/net/wan/sdlamain.c	Sun Oct  5 16:23:10 2003
@@ -1161,7 +1161,6 @@
 void wanpipe_open (sdla_t* card)
 {
 	++card->open_cnt;
-	MOD_INC_USE_COUNT;
 }
 
 /*============================================================================
@@ -1173,7 +1172,6 @@
 void wanpipe_close (sdla_t* card)
 {
 	--card->open_cnt;
-	MOD_DEC_USE_COUNT;
 }
 
 /*============================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-26  5:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 19:21 [PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in wanpipe Christoph Hellwig
2004-02-26  5:44 ` Jeff Garzik

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).