diff options
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r-- | net/phonet/af_phonet.c | 11 |
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 | ||
36 | static struct net_proto_family phonet_proto_family; | 36 | static struct net_proto_family phonet_proto_family; |
37 | static struct phonet_protocol *phonet_proto_get(int protocol); | 37 | static struct phonet_protocol *phonet_proto_get(int protocol); |
38 | static inline void phonet_proto_put(struct phonet_protocol *pp); | 38 | |
39 | static 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 | ||
431 | static inline void phonet_proto_put(struct phonet_protocol *pp) | ||
432 | { | ||
433 | module_put(pp->prot->owner); | ||
434 | } | ||
435 | |||
436 | /* Module registration */ | 435 | /* Module registration */ |
437 | static int __init phonet_init(void) | 436 | static int __init phonet_init(void) |
438 | { | 437 | { |