Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752021AbaJOTCG (ORCPT ); Wed, 15 Oct 2014 15:02:06 -0400 Received: from mailrelay005.isp.belgacom.be ([195.238.6.171]:13899 "EHLO mailrelay005.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbaJOTCD (ORCPT ); Wed, 15 Oct 2014 15:02:03 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq4SAIzDPlRbtBXi/2dsb2JhbABbgw6BK7guBQFzmiMEAoEYFwF9hDAvI4EaN4hCAbVChB2PGyyGIolIZB2ENQWdVJYagUcBgjE7L4EGgUQBAQE From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , Lauro Ramos Venancio , Aloisio Almeida Jr , Samuel Ortiz , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 1/1 net-next] NFC: llcp: remove bool comparison on device Date: Wed, 15 Oct 2014 21:01:58 +0200 Message-Id: <1413399718-8382-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccinelle warning: net/nfc/llcp_core.c:132:5-11: WARNING: Comparison to bool Signed-off-by: Fabian Frederick --- net/nfc/llcp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c index 51e7887..978399d 100644 --- a/net/nfc/llcp_core.c +++ b/net/nfc/llcp_core.c @@ -129,7 +129,7 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool device, write_unlock(&local->sockets.lock); /* If we still have a device, we keep the RAW sockets alive */ - if (device == true) + if (device) return; write_lock(&local->raw_sockets.lock); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/