Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fengguang Wu and committed by
Samuel Ortiz
db3287da cb30caf0

+2 -2
+2 -2
net/nfc/rawsock.c
··· 31 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 36 write_lock(&l->lock); 37 37 sk_add_node(sk, &l->head); 38 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 43 write_lock(&l->lock); 44 44 sk_del_node_init(sk);