NFC: Remove warning from nfc_llcp_local_put
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 27 Jun 2012 10:23:48 +0000 (12:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:20 +0000 (16:42 -0400)
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>
net/nfc/llcp/llcp.c

index f3bc0a9efb37ad0730a30576510f44878637fbef..82f0f7588b463d8ba0a8e1931124c03f94de29ed 100644 (file)
@@ -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;