netdev
[Top] [All Lists]

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

To: netdev@xxxxxxxxxxx
Subject: [PATCH] remove useless MOD_{INC,DEC}_USE_COUNT in wanpipe
From: Christoph Hellwig <hch@xxxxxx>
Date: Sun, 22 Feb 2004 20:21:00 +0100
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
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;
 }
 
 /*============================================================================

<Prev in Thread] Current Thread [Next in Thread>