summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2003-07-19 07:53:04 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-07-19 07:53:04 -0700
commit7372f866bdeb222aa152f8f4d69a0f17fc865bc2 (patch)
tree048661f6938ee92f33fee83e8901628687638e1f /net
parent596821205fe118ae88d24e51d659aed1c119e8e4 (diff)
[NET]: remove MOD_* from LAPB.
The MOD_INC and MOD_DEC in lapb are no longer necessary in 2.6 since the module subsystem will not allow lapb to be unloaded as long as a module that is referencing the symbols (lapb_register/lapb_unregister) is loaded.
Diffstat (limited to 'net')
-rw-r--r--net/lapb/lapb_iface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
index cb3f7ecded46..ca425eba6b71 100644
--- a/net/lapb/lapb_iface.c
+++ b/net/lapb/lapb_iface.c
@@ -43,13 +43,11 @@ static struct list_head lapb_list = LIST_HEAD_INIT(lapb_list);
static rwlock_t lapb_list_lock = RW_LOCK_UNLOCKED;
/*
- * Free an allocated lapb control block. This is done to centralise
- * the MOD count code.
+ * Free an allocated lapb control block.
*/
static void lapb_free_cb(struct lapb_cb *lapb)
{
kfree(lapb);
- MOD_DEC_USE_COUNT;
}
static __inline__ void lapb_hold(struct lapb_cb *lapb)
@@ -127,8 +125,6 @@ static struct lapb_cb *lapb_create_cb(void)
if (!lapb)
goto out;
- MOD_INC_USE_COUNT;
-
memset(lapb, 0x00, sizeof(*lapb));
skb_queue_head_init(&lapb->write_queue);