summaryrefslogtreecommitdiffstats
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 22:42:20 +0200
commit1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d (patch)
tree781b7269a5fc4e9049a578036382b358c71cf6aa
parentNFC: Handle LLCP Disconnected Mode frames (diff)
downloadlinux-1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d.tar.xz
linux-1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d.zip
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>
-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;