diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-05-25 18:53:10 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-05-25 18:53:10 -0400 |
commit | db3287da347ad29ec8bd9e43f0386f987e9d8f98 (patch) | |
tree | 56f88ecc469ccc161ee209486140f96072273856 /net | |
parent | cb30caf02704c757fbc6297ca483174ddffecbd0 (diff) |
NFC: nfc_sock_link() can be static
CC: Hiren Tandel <hirent@marvell.com>
CC: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/nfc/rawsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index 8627c75063e2..55eefee311eb 100644 --- a/net/nfc/rawsock.c +++ b/net/nfc/rawsock.c | |||
@@ -31,14 +31,14 @@ static struct nfc_sock_list raw_sk_list = { | |||
31 | .lock = __RW_LOCK_UNLOCKED(raw_sk_list.lock) | 31 | .lock = __RW_LOCK_UNLOCKED(raw_sk_list.lock) |
32 | }; | 32 | }; |
33 | 33 | ||
34 | void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) | 34 | static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) |
35 | { | 35 | { |
36 | write_lock(&l->lock); | 36 | write_lock(&l->lock); |
37 | sk_add_node(sk, &l->head); | 37 | sk_add_node(sk, &l->head); |
38 | write_unlock(&l->lock); | 38 | write_unlock(&l->lock); |
39 | } | 39 | } |
40 | 40 | ||
41 | void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) | 41 | static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) |
42 | { | 42 | { |
43 | write_lock(&l->lock); | 43 | write_lock(&l->lock); |
44 | sk_del_node_init(sk); | 44 | sk_del_node_init(sk); |