Skip to contentSkip to conversation

NFC: Don't warn when closing uninitialized socket

PATCH In review Sasha Levin 2 participants 2 messages Jul 2, 2012 – Jul 5, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFC: Don't warn when closing uninitialized socket

It is possible to close a NFC socket without initializing it first, there's no need to warn about it.

---
 net/nfc/llcp/llcp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
net/nfc/llcp/llcp.c +0 -2
index 5d503ee..cf84544 100644
@@ -118,8 +118,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;
 
Signature · 1 line
1.7.8.6
#1 lore raw

Hi Sasha,

Quoted 7 lines · Sasha Levin

It is possible to close a NFC socket without initializing it first, there's no need to warn about it.

---
 net/nfc/llcp/llcp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

I already fixed this one, with your reported-by.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/