Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp253525imw; Thu, 14 Jul 2022 00:44:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vu/totcIo6u99GQQZNsYJ2244KEGJt5xVMOqq7y0yX90pjnGCIaKHm02sj3MANUwD8bAIe X-Received: by 2002:a05:6402:2753:b0:43a:d6f2:9839 with SMTP id z19-20020a056402275300b0043ad6f29839mr10272012edd.73.1657784675169; Thu, 14 Jul 2022 00:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657784675; cv=none; d=google.com; s=arc-20160816; b=AMoyM9m29L4jILivBXIhqx12aUdtbWDoIwsCWRekuYDMY9Z2s3HHuih2E7QGB4bgDg D8xyBlsM/XuuQocEe4Ja1QjgCl87xl97w97LSbHZwTDeHnOyRh5fP07NBJ32q7ssC4wF /nFVPqhPpk9udbWDrTmbRR17BLn/8Ab6LmUJpWegnhOX7gk+dRb3TT8F155fQSxAWY29 QBWA1CMnD+zedGvq884VGdtMC0bP33DZqX5oYLAvePY6ZbeYkI+h3Q5TuI2m0ii+cPem 5Hvs2ASEbm4/wiLV3cVRmU6BWLR2aICcdKTIvyNXhJy89f6vTgHzkzd2s1Q86ZUHwcmv FNdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0ib4Bniq7Lo7Be5LgacYPUPVlkkcwIRQeckNV2KPvho=; b=jpDTwiMRsmPy5LqQ0nqVLOnAUX9b+8NzOkxpk9OLbMyIvCD5sKGg+QwYs99Ks4IL4s CKYD5tc+dB3U4YBwyiKb3QLEtQTveoYq/67b89yrCudtXdSAGnraL/AEJG9hougsYacz C6OFTcRhpZJZ4MA4EX7yU0ZUlzfdESeMi6SfV6T03yAzNW+s2qHKy59ZPy4Mnxs78Nfj 76VliEvN29hJwPaAihjmFSzA2flgikxfGWP39dVYzAjEiYenPoMDn3/uMFNPzQ/VDYpX z+5l8W+0PfklEQSIfBzLsWHiMMEH9h8qWWkQ1+RV42eX+k32z1Kc6suTmQQE5uDD9h5W TL3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMpFH48c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kl8-20020a170907994800b006f40efd4b88si1291150ejc.812.2022.07.14.00.44.09; Thu, 14 Jul 2022 00:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMpFH48c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235310AbiGNGyh (ORCPT + 99 others); Thu, 14 Jul 2022 02:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232211AbiGNGyf (ORCPT ); Thu, 14 Jul 2022 02:54:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7E22AC4F for ; Wed, 13 Jul 2022 23:54:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BE710B8222A for ; Thu, 14 Jul 2022 06:54:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AA84C34115 for ; Thu, 14 Jul 2022 06:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657781672; bh=pY6Oh1xI3elnYIaAyKOGZ+znYcxLjnl8Uh5Nt/yrIoo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jMpFH48cdb7uQwOo4R5JaygLrQlIKxKWQLFRoOu9DjNe9oR2oA+AjIbS8Hi0cMseN oy2BsRFu0PP+KKL1ZUTrXFNSax0CBbE5exY69vNEA0OTzkjRsw1sBFHh3Oyx65IOJk ZIeCtJhcEhX6seNXpGO4yTXM8lA/+YMteNw2gy7pK3OoPKI1hoq1nVIox3OcTfJnZE PVnw5k5cc4ByMt5Jy/HtAgGzvhokjB2NyjQyD0HxWtyvJ9lD3c+teNbYD6gtn43xvY i00bqM6vxhxBLROnjsgHLfdP/xtj8rEzu6qlzZCMZLZe0jE2j1crIT/czVmIIWUDq1 EKTWYO88tGt8Q== Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-31c9b70c382so7837147b3.6 for ; Wed, 13 Jul 2022 23:54:32 -0700 (PDT) X-Gm-Message-State: AJIora/9/liH3FriQqNt7MU34c2M/TmtIutBIH8VOv6HD5PbUBs4hejQ ePg/5EC1XIyKzJ3gnDBczRyUniE6pTYItxydac4= X-Received: by 2002:a0d:fec3:0:b0:31b:c2d6:34ea with SMTP id o186-20020a0dfec3000000b0031bc2d634eamr8103089ywf.62.1657781671284; Wed, 13 Jul 2022 23:54:31 -0700 (PDT) MIME-Version: 1.0 References: <20220714012908.4948-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220714012908.4948-1-yang.lee@linux.alibaba.com> From: Oded Gabbay Date: Thu, 14 Jul 2022 09:54:04 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next] habanalabs: Simplify bool conversion To: Yang Li Cc: Arnd Bergmann , Greg Kroah-Hartman , "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2022 at 4:29 AM Yang Li wrote: > > Fix the following coccicheck warning: > ./drivers/misc/habanalabs/gaudi2/gaudi2.c:9727:48-53: WARNING: > conversion to bool not needed here > > Signed-off-by: Yang Li > --- > drivers/misc/habanalabs/gaudi2/gaudi2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/habanalabs/gaudi2/gaudi2.c b/drivers/misc/habanalabs/gaudi2/gaudi2.c > index 98336a1a84b0..344b4dedef41 100644 > --- a/drivers/misc/habanalabs/gaudi2/gaudi2.c > +++ b/drivers/misc/habanalabs/gaudi2/gaudi2.c > @@ -9724,7 +9724,7 @@ static int gaudi2_get_mmu_base(struct hl_device *hdev, u64 mmu_id, u32 *mmu_base > > static void gaudi2_ack_mmu_error(struct hl_device *hdev, u64 mmu_id) > { > - bool is_pmmu = (mmu_id == HW_CAP_PMMU ? true : false); > + bool is_pmmu = (mmu_id == HW_CAP_PMMU); > struct gaudi2_device *gaudi2 = hdev->asic_specific; > u32 mmu_base; > > -- > 2.20.1.7.g153144c > This patch is: Reviewed-by: Oded Gabbay Applied to -next. Thanks, Oded