aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-06-27 06:23:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:42:20 -0400
commit1550bf2d59a5ab74c5c14f2e65ed83516ca7d74d (patch)
tree781b7269a5fc4e9049a578036382b358c71cf6aa /net/nfc
parent5c0560b7a5c662ce5fef6ddd52f7bc8d38ad1907 (diff)
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)
123 123
124int nfc_llcp_local_put(struct nfc_llcp_local *local) 124int nfc_llcp_local_put(struct nfc_llcp_local *local)
125{ 125{
126 WARN_ON(local == NULL);
127
128 if (local == NULL) 126 if (local == NULL)
129 return 0; 127 return 0;
130 128