aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index defeb7a0d502..f400ff168904 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -35,7 +35,11 @@
35 35
36static struct net_proto_family phonet_proto_family; 36static struct net_proto_family phonet_proto_family;
37static struct phonet_protocol *phonet_proto_get(int protocol); 37static struct phonet_protocol *phonet_proto_get(int protocol);
38static inline void phonet_proto_put(struct phonet_protocol *pp); 38
39static inline void phonet_proto_put(struct phonet_protocol *pp)
40{
41 module_put(pp->prot->owner);
42}
39 43
40/* protocol family functions */ 44/* protocol family functions */
41 45
@@ -428,11 +432,6 @@ static struct phonet_protocol *phonet_proto_get(int protocol)
428 return pp; 432 return pp;
429} 433}
430 434
431static inline void phonet_proto_put(struct phonet_protocol *pp)
432{
433 module_put(pp->prot->owner);
434}
435
436/* Module registration */ 435/* Module registration */
437static int __init phonet_init(void) 436static int __init phonet_init(void)
438{ 437{