o af_ax25: remove MOD_{INC,DEC}_USE_COUNT

Now the core networking infrastructure will (finally) do that for the net
protocol families, its just a matter of setting the ->owner field in the
registered struct net_proto_family to THIS_MODULE.
parent 79c69c3f
...@@ -68,8 +68,6 @@ void ax25_free_cb(ax25_cb *ax25) ...@@ -68,8 +68,6 @@ void ax25_free_cb(ax25_cb *ax25)
} }
kfree(ax25); kfree(ax25);
MOD_DEC_USE_COUNT;
} }
static void ax25_free_sock(struct sock *sk) static void ax25_free_sock(struct sock *sk)
...@@ -507,8 +505,6 @@ ax25_cb *ax25_create_cb(void) ...@@ -507,8 +505,6 @@ ax25_cb *ax25_create_cb(void)
if ((ax25 = kmalloc(sizeof(*ax25), GFP_ATOMIC)) == NULL) if ((ax25 = kmalloc(sizeof(*ax25), GFP_ATOMIC)) == NULL)
return NULL; return NULL;
MOD_INC_USE_COUNT;
memset(ax25, 0x00, sizeof(*ax25)); memset(ax25, 0x00, sizeof(*ax25));
skb_queue_head_init(&ax25->write_queue); skb_queue_head_init(&ax25->write_queue);
...@@ -1912,6 +1908,7 @@ static int ax25_get_info(char *buffer, char **start, off_t offset, int length) ...@@ -1912,6 +1908,7 @@ static int ax25_get_info(char *buffer, char **start, off_t offset, int length)
static struct net_proto_family ax25_family_ops = { static struct net_proto_family ax25_family_ops = {
.family = PF_AX25, .family = PF_AX25,
.create = ax25_create, .create = ax25_create,
.owner = THIS_MODULE,
}; };
static struct proto_ops ax25_proto_ops = { static struct proto_ops ax25_proto_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment