summaryrefslogtreecommitdiffstats
path: root/net/nfc/llcp_core.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-22 22:14:18 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2014-02-23 23:34:09 +0100
commit0b51fc5633df563695f5021bc121a9df20b3eb14 (patch)
tree30fbe7320113f6aae986ff8c7d79bd0937c72390 /net/nfc/llcp_core.c
parent4f913d4631fa9c47320669b2e7ec62fa7436719d (diff)
downloadlinux-0b51fc5633df563695f5021bc121a9df20b3eb14.tar.bz2
NFC: Use LIST_HEAD() at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/llcp_core.c')
-rw-r--r--net/nfc/llcp_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c
index 6184bd1fba3a..9d37dedec906 100644
--- a/net/nfc/llcp_core.c
+++ b/net/nfc/llcp_core.c
@@ -27,7 +27,7 @@
static u8 llcp_magic[3] = {0x46, 0x66, 0x6d};
-static struct list_head llcp_devices;
+static LIST_HEAD(llcp_devices);
static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb);
@@ -1622,8 +1622,6 @@ void nfc_llcp_unregister_device(struct nfc_dev *dev)
int __init nfc_llcp_init(void)
{
- INIT_LIST_HEAD(&llcp_devices);
-
return nfc_llcp_sock_init();
}