summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-06-27 12:23:48 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:42:20 -0400
commit1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d (patch)
tree781b7269a5fc4e9049a578036382b358c71cf6aa /net/nfc
parent5c0560b7a5c662ce5fef6ddd52f7bc8d38ad1907 (diff)
downloadlinux-1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d.tar.bz2
NFC: Remove warning from nfc_llcp_local_put
The socket local pointer can be NULL when a socket is created but never bound or connected. Reported-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/llcp/llcp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index f3bc0a9efb37..82f0f7588b46 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -123,8 +123,6 @@ static void local_release(struct kref *ref)
int nfc_llcp_local_put(struct nfc_llcp_local *local)
{
- WARN_ON(local == NULL);
-
if (local == NULL)
return 0;