Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1066647ybi; Sat, 8 Jun 2019 01:37:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjLz5B2wwmrWmB0RpbZ3J0SO2YcWpsi8BSJRX/Ol4vnWohQ5jXSY5ltQE8YSnKra5Pal5v X-Received: by 2002:a63:9dcc:: with SMTP id i195mr6413981pgd.183.1559983026598; Sat, 08 Jun 2019 01:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559983026; cv=none; d=google.com; s=arc-20160816; b=TNzGqUjJisVUCEiuMgz5QDSdXPa6w0T5xtr29Jc8Q3JJzVEMFJe0Jf2/cwrCPihd5b ZZ/iOElzsPC0Ns/8oPsIkc2cHIlcDE1O4FTvoHe7xChrrLpPf+AmfXujMhDUdUBgV/kb oLolJy34/FjAD1eoWXF+tRiL7poUEYkO7tNb3LQGZRHL4TQtselXmvOL1QEup0thMU/J Be/XJwN/IFBV+vBVC3pFC1Dkl+eWvZRBcoT0kK740+mfYIPchj29ZHuVs9jEUK1x3M1E zDiRvmFu+/tmW73cX7B7n8kORHRnooorRNe4mdd7/lvnF9sdT7DlWj/TBWGz+D7xx2+s HWEg== 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=kxOYJf8od5LJPBcLGMCHl4bwa9e0qihFkjhJ+e7tcLY=; b=uNY8KYiBPBDjl/BmOJC8DRXWbKY4CPxLu7ME0vRemvCiKmsY4MFHbXu8EOzoa4dy7z cplmNBdSN5SQL13SR19uARuXkb49VUa6O/0mwusgqRoYuuugYW+xoQCfwqYNGEtAUAYh mj9amscOgp+IyVDKjls06f/2EKO1EnrLTFlV5ueJrkWT1nMnWXfJP7TrUMtsEi7s6Xdr ogPtRzUjNHFoBKyJDj7f5zoQpheRBtm8yqYCUhgmBDPIwBU922OkR/4Mk/ugoaysrZQB Uf/zdJwFIPx+Gd6/1bn2EeeLIxyPRWkyIT/4feDzYUt9pEFbP7E1/pL3lLeQMnR0s9ec oaLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQMgFyoY; 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 k12si4180051pgj.593.2019.06.08.01.36.48; Sat, 08 Jun 2019 01:37:06 -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=FQMgFyoY; 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 S1726604AbfFHIfj (ORCPT + 99 others); Sat, 8 Jun 2019 04:35:39 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35244 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfFHIfj (ORCPT ); Sat, 8 Jun 2019 04:35:39 -0400 Received: by mail-pg1-f193.google.com with SMTP id s27so2389811pgl.2; Sat, 08 Jun 2019 01:35:39 -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=kxOYJf8od5LJPBcLGMCHl4bwa9e0qihFkjhJ+e7tcLY=; b=FQMgFyoY3SPy1YDxGb2RZSzlIRaPh3vMRIBK14e2HUPAvO6CPZzCOQq7ec33p2xY0L UQ2uvpu70kPRCxcvrqnYYnepCmNs8MAHXA+PCynUp6MQm8LlGHlZIVYJZsHe7uJK1T6f cFZNlVQh6mMCGEF0GdEw5ISy839RqHe0Ny9hx9vc4vaWWIaRAC/Np/FLfIcDrxp6uUfQ btmatTFP3nhSIAMaAPRaddAOPRJp9LzXyBpuxrzCWhkBzMgE/f2VYOgypg4oXFKfuGif t0E86toqiE8qL6J4JHHz0NyJjOOBGBgK+rLd2t+cN3PNEBe/+Cl+LoX/YXYim1uWYMBi gRSg== 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=kxOYJf8od5LJPBcLGMCHl4bwa9e0qihFkjhJ+e7tcLY=; b=KKAoVqj7SYzg9PTgNumiEdDchGCm1kw6IZc/wCYDw3WvGlpfuHtRWPfpJF+eG61eqx SCMUceVy10CBtGs83MHJOF7W7CpmseUBYOUps0HEk8SeVZmpQRI82G22CvrT5em5hI+9 otqNuiqAMLj/I8ma63N3yNIU5g8xXElPFc0jn4B2Oa5onGSXP6Q3YRxus6GpdDwAAYGj pRHG4JtjF48Tl1u4Kk16JFcXYjBsEssffYJ8DO67l/Mpv61IPSGvgKTu3XDajIMVgTrk y+GkzJ02E9CDGmTU40kKefhX2BbgMcokaszOJ5MWvuyMGFpDJ1uyTJJ20YMznqgwk5xb n7ag== X-Gm-Message-State: APjAAAVyneIvTuPVbNaNrKJ5dvvUVcgJ7L1ZKbp9sCmRM1sTZqrVFzAK 9q/gJvj36u92XwvnzxaCZX7UUsL2 X-Received: by 2002:a63:7ca:: with SMTP id 193mr6539961pgh.240.1559982938651; Sat, 08 Jun 2019 01:35:38 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id i3sm4535972pfo.138.2019.06.08.01.35.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jun 2019 01:35:37 -0700 (PDT) Date: Sat, 8 Jun 2019 14:05:33 +0530 From: Hariprasad Kelam To: "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ipv6: exthdrs: fix warning comparison to bool Message-ID: <20190608083532.GA7288@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/ipv6/exthdrs.c:180:9-29: WARNING: Comparison to bool Signed-off-by: Hariprasad Kelam --- net/ipv6/exthdrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index ab5add0..e137325 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -177,7 +177,7 @@ static bool ip6_parse_tlv(const struct tlvtype_proc *procs, /* type specific length/alignment checks will be performed in the func(). */ - if (curr->func(skb, off) == false) + if (!curr->func(skb, off)) return false; break; } -- 2.7.4