Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1216550ybi; Sat, 8 Jun 2019 05:08:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqkLVwhg9S7AbwuiB4PhH5qgrLQPDywzpoIkxE2oLK36sJmP80zFwJRXaO1kVv82VlatNK X-Received: by 2002:a62:1bd1:: with SMTP id b200mr39932243pfb.210.1559995686980; Sat, 08 Jun 2019 05:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559995686; cv=none; d=google.com; s=arc-20160816; b=bpZbWLPieVXnc3xf7oVeS4PQVebwrOIm2eyK4sPxJs/KG6po3BHbivcCJAU1fFDBGJ Vhy5UC4CvWeaBitJb0jxPeUgXQwc5Oym7Fd3cFkW76C9saPhyAIOPmIH6DVpPjFquM7y 5cYp6HAEADc/C04qi3wEirEUouQPAa8IjGSnburvGroiHWRr+KWLaPwytMe/U+iCT7hx en6kzp6Sq3OVaMIiJpyGKqo9h2vRkpk1OXeEnW96jkCnmIAOb2bOnPYiPWv5M3wEgyfM w9ojl9I8UuenbJed6+YDr5BoYnOb4tsig+O/CAmLO9UQoe4djxkMW5k/eEE5Nr7Ftdk+ PM/A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:dkim-signature; bh=9E7MyQwq36DvghPQy6gbYSm5lbo+i9g9K12tGggIgLM=; b=DYubX6EiOrKZkAd0PCl2tTwTprkKOj/BLQdoF9bip1N1dLLOdWI8ulF+ztk1b8bfhT 7gEV08DXqFNkfejKMINhHzljue+1XBZOGBaDA/XheEMR8L+RXVxePz/sLER5snkQY23i t8lzA9YtpiYUE+r6jZxlFlxN2WkCeuKheb1qwvGIHK3dcWw1AblDNSNyJ6+0eqlsIjp9 fwyymtNp2xEL5GB/hFciECOESkYyLXQuY/ysGe6RbhjlnkSdMRosaztFVayy9WdY1HIE df8jeZN6LcAisPn3EJ9ro8xy80zHn4YuWQZOLdwmccSqsar+SB+Ikq2dUZJI5LM9it9Q BIrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=r9GHNBdf; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si4422209plz.27.2019.06.08.05.07.51; Sat, 08 Jun 2019 05:08: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=@aol.com header.s=a2048 header.b=r9GHNBdf; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbfFHMGU (ORCPT + 99 others); Sat, 8 Jun 2019 08:06:20 -0400 Received: from sonic314-19.consmr.mail.gq1.yahoo.com ([98.137.69.82]:33370 "EHLO sonic314-19.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbfFHMGP (ORCPT ); Sat, 8 Jun 2019 08:06:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1559995574; bh=9E7MyQwq36DvghPQy6gbYSm5lbo+i9g9K12tGggIgLM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=r9GHNBdfTrGLdNxj56yG+fGQud77WJx4xUHXbzfggSV9sJlANrSYsCvTs/W43HtH2U3g+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PT6g5E8OOaYC1wJjwMh pGXepoSCH_TYM2YJvfqjcSd5yi2m4ilkHraILk11887h4qETnNuFZ2XQZ.ECn39bjW.uG_9RrITU 9gbxuwV6wuQbEw3lBjOlLZO7R70K_wBzFY_OWda0F0FCuTTRqvmG3ribTSSF9WGn182KfwNoy2xw UNSaLSTvhTcLoAlcQBW7.t.tFzWysiK8XGjc7CCbTos2gkCNH7srHDvQ9onVEbmcdK69Y0szV8aN .gOm7womykJxf31YPQAFlToQw6oUgKcfVU3uzPbtq9xLdChzG6Bwz41aNkRuPkP5VcH3hhiP9KQh 8m_hF83O6PgwaATFlJbwyw5UwKoE6HcO2YeXxzeyZD1IhpIU2aMZvpvUljMpxLvKtT4cNJWiuV6M MfDElje1ByvLUIz_RdAg5bBG.4_HUNJux62uVfpgM2g-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Sat, 8 Jun 2019 12:06:14 +0000 Received: from 125.120.226.196 (EHLO [192.168.0.101]) ([125.120.226.196]) by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3dfb8dff750982ce7b5096f4cd30efc9; Sat, 08 Jun 2019 12:06:14 +0000 (UTC) Subject: Re: [PATCH] staging: erofs: fix warning Comparison to bool To: Hariprasad Kelam References: <20190608093937.GA10461@hari-Inspiron-1545> Cc: Gao Xiang , Chao Yu , Greg Kroah-Hartman , linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org From: Gao Xiang Message-ID: <8aa1fe39-27f3-e74b-5985-c67e04be2f31@aol.com> Date: Sat, 8 Jun 2019 20:06:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190608093937.GA10461@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/8 ??????5:39, Hariprasad Kelam wrote: > fix below warnings reported by coccicheck > > drivers/staging/erofs/unzip_vle.c:332:11-18: WARNING: Comparison to bool > > Signed-off-by: Hariprasad Kelam Reviewed-by: Gao Xiang Thanks, Gao Xiang > --- > drivers/staging/erofs/unzip_vle.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c > index 9ecaa87..f3d0d2c 100644 > --- a/drivers/staging/erofs/unzip_vle.c > +++ b/drivers/staging/erofs/unzip_vle.c > @@ -329,7 +329,7 @@ try_to_claim_workgroup(struct z_erofs_vle_workgroup *grp, > z_erofs_vle_owned_workgrp_t *owned_head, > bool *hosted) > { > - DBG_BUGON(*hosted == true); > + DBG_BUGON(*hosted); > > /* let's claim these following types of workgroup */ > retry: >