From 7372f866bdeb222aa152f8f4d69a0f17fc865bc2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 19 Jul 2003 07:53:04 -0700 Subject: [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. --- net/lapb/lapb_iface.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'net') 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); -- cgit v1.2.3