diff options
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/llcp/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/nfc/llcp/sock.c b/net/nfc/llcp/sock.c index e5d80142b825..6152d05f8378 100644 --- a/net/nfc/llcp/sock.c +++ b/net/nfc/llcp/sock.c | |||
@@ -78,11 +78,11 @@ static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) | |||
78 | struct sockaddr_nfc_llcp llcp_addr; | 78 | struct sockaddr_nfc_llcp llcp_addr; |
79 | int len, ret = 0; | 79 | int len, ret = 0; |
80 | 80 | ||
81 | pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); | ||
82 | |||
83 | if (!addr || addr->sa_family != AF_NFC) | 81 | if (!addr || addr->sa_family != AF_NFC) |
84 | return -EINVAL; | 82 | return -EINVAL; |
85 | 83 | ||
84 | pr_debug("sk %p addr %p family %d\n", sk, addr, addr->sa_family); | ||
85 | |||
86 | memset(&llcp_addr, 0, sizeof(llcp_addr)); | 86 | memset(&llcp_addr, 0, sizeof(llcp_addr)); |
87 | len = min_t(unsigned int, sizeof(llcp_addr), alen); | 87 | len = min_t(unsigned int, sizeof(llcp_addr), alen); |
88 | memcpy(&llcp_addr, addr, len); | 88 | memcpy(&llcp_addr, addr, len); |