Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp59681imw; Wed, 13 Jul 2022 19:08:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1R5MxGydMvweuEyRGJrdkbBOcqNWSAI6K9nz7kgC7AFa05uKtG27dkNO+C2a3fz+QYehd X-Received: by 2002:a17:902:e54e:b0:16c:33f7:55f7 with SMTP id n14-20020a170902e54e00b0016c33f755f7mr6048189plf.111.1657764533227; Wed, 13 Jul 2022 19:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657764533; cv=none; d=google.com; s=arc-20160816; b=H9zZvcplm27eyAIvw0Q73nIYuSAGcssAzEq5xWX4bB5fKirwtytAzUZ8vbtGjymh8Z bloqVy/zqL1GyFvN6hNWj6MLK097f5u+Y/QYIqPw59MBILkzoeLo0DxbIRSWVlxnMg+h j8Y2pnFFlIBL8MSo0mJPrQMN1Bemedd3W1q3OAcTWU5dwBo3ikt+NoX137+bZXqzu3uW h1qxxeKk5FJ73aR0n890Gk8hgKSNHsn/djXdXTYNYWM28zAyrHGCJ2c1NPlqn56voM18 5zc5V6tGRx5IzlYP7ltcRpE+6OaDVsiJAr1lnFDNIQi66E8ISFuokvc2uOnqBx+AGFAG 8ApQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LVwUlPBz2EapVOy2IMA5gN1T1kNX4haEp1QrrSR7DNE=; b=MygMNg1p87QORXZiPjpWSdJ4pVWbEJs1+laoAeGHVmm2RAajKAoTau7VXJ/WornCAe QfHY2MlJlmDbgy4wyr4kfdPdlhJGRrnYPjX9Dw3AXSJv0wFcNcYj3ZfM/6MzdV7jvpHi uSeVNcCROgWgwLzsmfV/DIohWe2dEtNG7sWAUFGVh3CIMlI90GuoT12BDHQLzU+YvS+p jNCJ+UNco0ZtBnzJs0OPU1hqboGS+YOlig+RQD5L2J7+om3//FR+cu2WXhfmoSXfwh7i XUo38JmSvQ043MxSndXYhDBoqVRIyUi0uEcfkF/mtYYAOHjvtWNtpyvYoNiU+cWkWm8M riww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056a00191300b00528cc4fc308si773812pfi.268.2022.07.13.19.08.41; Wed, 13 Jul 2022 19:08:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbiGNB3P (ORCPT + 99 others); Wed, 13 Jul 2022 21:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbiGNB3O (ORCPT ); Wed, 13 Jul 2022 21:29:14 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBDA6B4BF for ; Wed, 13 Jul 2022 18:29:12 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VJGv6Um_1657762149; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VJGv6Um_1657762149) by smtp.aliyun-inc.com; Thu, 14 Jul 2022 09:29:10 +0800 From: Yang Li To: ogabbay@kernel.org Cc: arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] habanalabs: Simplify bool conversion Date: Thu, 14 Jul 2022 09:29:08 +0800 Message-Id: <20220714012908.4948-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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