Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1550bf2d authored by Samuel Ortiz's avatar Samuel Ortiz Committed by John W. Linville
Browse files

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: default avatarSasha Levin <levinsasha928@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 5c0560b7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;