summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/lapb/lapb_iface.c')
-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);