Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2742447ybi; Sun, 9 Jun 2019 19:57:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxmltyjZqyBWmntQbfVN+5hbVhGdkzUksNiEevKRwusvP6WwSQjt0CNNR19eQJZhd0BpSO X-Received: by 2002:a17:902:aa8a:: with SMTP id d10mr32105851plr.159.1560135444191; Sun, 09 Jun 2019 19:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560135444; cv=none; d=google.com; s=arc-20160816; b=VgQNH5j/KIXYzqWrqhjeUzqx0xRn3CLy8JZ8Zor2j4gdcxl7D2HQTuUTBwtMr7DhBd wAWWNuoSfSKJcZRCnI1/EpByds69DMYNR1SEfb8lItDBbkQToajGL5Yvxcw8dbaX5FZn 4tFymtV/wj09w62q4SffUawoEpD9/MbP8Nr7SJ1s+XCHXV0jGRlCKsjAZwFvniB/bpYe EAUpQiBeo9XH8Jb86T8pGXsqKxA6jAVJo6itLQrgUbMTso3lDwFVpKIt2AD7EZzKAy/F TSqblkRVsbnxtLxg5N4iR7PqroUrBqRR6q1lWGu8RsBoi/7zQGaTacdgE/aEFUXSV4Yd Silw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=/Qxa4sfTAOs+svH1QI9waOiVOzBfOZC5SLGYC7TBQsI=; b=XpCHFzzlc66fh1hJpCH1Kilm1LEFQf4qMScCTHVTO/7VLx1HhA+CtFhs5FEKZDgF50 Q/mNOOYItS7Qa2jQ7UR20mDvjf4QeXvi1tjUtzgslZ2cuw8V4Oo9LghUYai+OYGJIk2o 1sze9HcQTnPfBl7pps/Xy9I8kRDghRukzOAywC4jwZTkEbCZYvKM/M5KZfjvGjq6yD/Y vW4B5q7J3ssBaNIO8Ra3e1Pb/xZ2pnbCYr9qoxZ8DeYOjeI6G77MEeB3QPUzHGyqmCCf YAdv5AKxrEI4S6G54QKX5SFJqDwdKmzg2ZRuRU/T33GvyuAvv9LYSpqSTu4cGEiZ4O/6 W3wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si8655426pjn.72.2019.06.09.19.57.08; Sun, 09 Jun 2019 19:57:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730438AbfFJCzC (ORCPT + 99 others); Sun, 9 Jun 2019 22:55:02 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:48918 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfFJCzB (ORCPT ); Sun, 9 Jun 2019 22:55:01 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 11CE214EAD05A; Sun, 9 Jun 2019 19:55:01 -0700 (PDT) Date: Sun, 09 Jun 2019 19:55:00 -0700 (PDT) Message-Id: <20190609.195500.2162257859838379859.davem@davemloft.net> To: hariprasad.kelam@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfc: nci: fix warning comparison to bool From: David Miller In-Reply-To: <20190608084154.GA7520@hari-Inspiron-1545> References: <20190608084154.GA7520@hari-Inspiron-1545> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 09 Jun 2019 19:55:01 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hariprasad Kelam Date: Sat, 8 Jun 2019 14:11:54 +0530 > Fix below warning reported by coccicheck > > net/nfc/nci/ntf.c:367:5-15: WARNING: Comparison to bool > > Signed-off-by: Hariprasad Kelam > --- > net/nfc/nci/ntf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c > index 1e8c1a1..81e8570 100644 > --- a/net/nfc/nci/ntf.c > +++ b/net/nfc/nci/ntf.c > @@ -364,7 +364,7 @@ static void nci_rf_discover_ntf_packet(struct nci_dev *ndev, > ntf.ntf_type = *data++; > pr_debug("ntf_type %d\n", ntf.ntf_type); > > - if (add_target == true) > + if (add_target) add_target is a bool, these kinds of changes are not good.