Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1070235ybi; Sat, 8 Jun 2019 01:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqytFkn7fnOzS+Eyy9g82EM6IgqpYaG6lpLk6FXYRVQZBNFLOqcV7GVyc4CgiOr55UbdGv1H X-Received: by 2002:a17:902:a40d:: with SMTP id p13mr57504076plq.11.1559983402014; Sat, 08 Jun 2019 01:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559983402; cv=none; d=google.com; s=arc-20160816; b=iHlIcp3N9eqZz4tUrHX3BDonJ/U93QWn0Pxwh9f+UM3hWR0d3KLw+GKJN/L1BqZErG GJvyyLnYxbl4AUECET2fC2J6TgqSSV4ZlOEcsfFM7TQu0IytYyrUrXDixsGyWwgy7kD8 JnG3AtmACNbBpvdusMFVf6rc1u+5I0APPijCaBsTgaaXN0UwDEHIz06tJe5PRSTVw2oA WxR0/RLqeeLsV+5RIWbqqx1w5Ub2yGylrE2LLuIB8j4mbiDus5ny5LxepsJJcDg2jdKE uvnX9FpLf7H0be3K3+JdLW6zyjOhWWj3KGtsmUmsQtmnHNXZEK6ChByxM3AlRwKUz5LR Udrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=cUi6YCZz/ey83Lh7qYQANmj1js9gNg9rJpOrhZYroro=; b=Xzyi7qFp2Z0r8Qpp6XHQfpOtyJFxUYjnOIM3dXlHyFQYsJr83c09vN19cFvCOBUdPV 34b5xIYXrvULvpElXcZ0ZjLMmjIgsC2L/IIc7nZFK4EhzTyOEZPLG3/PnG2mi7HCYVRa xzDs0Hjo+tj25MrYbSGNmwCR89dliy3Am19w+ZV3EPD9z5kR8fpptofomnwkVG1Dmq/2 eISbuQWWNGo4SJl15BWwDi9/6RkurDR5zAwFL8umP/4oCtSlDgKGXmglkFeYDzhzuTus q0z9P1La9N9+xZa1kIKa6XDZKD4elwVuHh6NvNDgdBLmr66BNgzZOTMj5wVnoeRSHqCZ 6dTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dw9cLMkW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si4133167pgh.196.2019.06.08.01.43.05; Sat, 08 Jun 2019 01:43:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dw9cLMkW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726626AbfFHIl7 (ORCPT + 99 others); Sat, 8 Jun 2019 04:41:59 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36283 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfFHIl7 (ORCPT ); Sat, 8 Jun 2019 04:41:59 -0400 Received: by mail-pf1-f193.google.com with SMTP id u22so2492374pfm.3; Sat, 08 Jun 2019 01:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=cUi6YCZz/ey83Lh7qYQANmj1js9gNg9rJpOrhZYroro=; b=Dw9cLMkWUsQRNmnU3iVZFWvpf6urwGJwSounBD3n5o9I3udjrcI9Tk1mt1JJeX3egu cCpQSsGV4M8BercqTdMjvaT571sFuFyeonrraTS208oiAOjIG2QmAQrdR9/RYW3VQCwf djO7ypwSb2wTOB31Aaw5mi84PtEtoQIvA2ZDrIAyX/Cn7Yx4q8okxDuDV2dgy0G5/tbP BBqZANPw1UOLvmyEGdffvm7B78Bcbe+1vGTHU2JV0RVOHCy9fAR7R+oG23SthGxbq5xK GJWtoJzMZMIHcz1WTZkvH2JtevBRcdjz0JsCg+cWw8LDaX2rXXkti8jiobEIizon/3hl 4bgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=cUi6YCZz/ey83Lh7qYQANmj1js9gNg9rJpOrhZYroro=; b=mz+s4ITDjAtkP1sD3zF8pqvASjkAhMwuRZPGfiMRauWbS/R4KDIUD2c5Xde6LVc9+e UYtmPtQrZKe5a8yFfoDP7E3N37xsW6Y83x2iQcdA/optKPJY3kmqaxmQ1b0gZsB9Az+G C1MURqbJ9pNyVTBavpk7k36vEbUP/A513B7UstY4J97B8Kd7lWTkO9tNj9wpySp51GUx QHAQ+PINNuspPzlVTBqC/c+o8eOeIDtNfKgus8xpZtC/VjuUVfNyJz381qusdHkXJgMu F2UrNgVE3fm062mSyTmw9HOGTLMuv0HVF51t2cnd5L5MLA3LoQZuk/oRIp/jq+hjrEDu 72/g== X-Gm-Message-State: APjAAAUEevcyasYpGOCgGuZrl1oxz6n6Tn1RDWhA218wZ8NS38lr0vam 4/TvSCMkfA0NW5x+I+0hcTk= X-Received: by 2002:a62:bd03:: with SMTP id a3mr6040013pff.209.1559983318354; Sat, 08 Jun 2019 01:41:58 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id h11sm4886172pfn.170.2019.06.08.01.41.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jun 2019 01:41:57 -0700 (PDT) Date: Sat, 8 Jun 2019 14:11:54 +0530 From: Hariprasad Kelam To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfc: nci: fix warning comparison to bool Message-ID: <20190608084154.GA7520@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) nci_add_new_target(ndev, &ntf); if (ntf.ntf_type == NCI_DISCOVER_NTF_TYPE_MORE) { -- 2.7.4