提交 1550bf2d 编写于 作者: S Samuel Ortiz 提交者: John W. Linville

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: NSasha Levin <levinsasha928@gmail.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 5c0560b7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册