mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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>
This commit is contained in:
parent
5c0560b7a5
commit
1550bf2d59
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user