NFC: Don't warn when closing uninitialized socket
Subsystems (3)
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.
Signed-off-by Sasha Levin <[email protected]>
--- net/nfc/llcp/llcp.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
net/nfc/llcp/llcp.c +0 -2
@@ -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
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.
Signed-off-by Sasha Levin <[email protected]>--- 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/