mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
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>
This commit is contained in:
parent
cb30caf027
commit
db3287da34
1 changed files with 2 additions and 2 deletions
|
@ -31,14 +31,14 @@ static struct nfc_sock_list raw_sk_list = {
|
|||
.lock = __RW_LOCK_UNLOCKED(raw_sk_list.lock)
|
||||
};
|
||||
|
||||
void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
|
||||
static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
|
||||
{
|
||||
write_lock(&l->lock);
|
||||
sk_add_node(sk, &l->head);
|
||||
write_unlock(&l->lock);
|
||||
}
|
||||
|
||||
void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
|
||||
static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
|
||||
{
|
||||
write_lock(&l->lock);
|
||||
sk_del_node_init(sk);
|
||||
|
|
Loading…
Reference in a new issue