Skip to content

Commit

Permalink
NFC: Remove warning from nfc_llcp_local_put
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed Jul 9, 2012
1 parent 5c0560b commit 1550bf2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1550bf2

Please sign in to comment.