Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1208950rwb; Thu, 4 Aug 2022 20:08:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wkGCkXMvnDl8WWpvswR7hSCTDQ5wQjpa6hBK+lsrevLyMhVoqmBrQ4g1DlQG2/UpqIY2+ X-Received: by 2002:a05:6870:538d:b0:10e:7824:fb67 with SMTP id h13-20020a056870538d00b0010e7824fb67mr5549305oan.140.1659668902367; Thu, 04 Aug 2022 20:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659668902; cv=none; d=google.com; s=arc-20160816; b=ZXuBXx91rhe5Q/7EIT6Ww1eCkRgo+TbYc95pkMgsD65+hA8ht6q9MJ5IklRlRDpeFE A5spty2OMViZEk4Kj/adj74c2x/02lKMzzao67nvD+cXoETErktOEMdwtDEEDyyMbSyZ RGH1D0FbMjhMEqnRpMAmXoBqRDggEUbsgMRpgKN5id/+hCLVqMTB2lCVEXrKKzHqLC7C sxgIRuTGnjmzJ1b/FoFWpqMCLvlw5Y47aLI+8h+jOaXIcCbp9aXbRZs/fHPVxZZSMcYG 8ivPT8Wx+sjgZxb9CD1H7p3HlfO6yeYbH1T1OFx5AyWVcmvoBsFV7FXKnw2OB3iavH4e xUFw== 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=exG+gzFGFk+MKSHUGxbMbJLVyD0B+jmZY7PrV3ZmY4Y=; b=wvDMtGzWSi4QESb8jnUNW86YFzEAuZ7F8X0w36padAEm5FRGqcNXToNp/9l+nRVOV1 OviXjSfrQBLveWRRlLrezFTgoD3eJfZKsFwU0F3u5dRN7g4ppURT5Whqd1SEh1ZNXs+X jaMTc32Lx+yZqim1y2FNn7GjEeBG6AWy51ypMRviCzIWXcMVQSq7eBaBbOiULLTdH6sK yRiyZ4/IgyDxTPLUAbZeJbs8qi3uWU0iY1d9xn4WcJKb69mrVlCj0OT134NziYn+XWHE Cpqm8Kz1uoWSLFH355KcKCPwpzymT1yMofTOAOLcpjOeC+ESpFS7lzGZSRti13tEuh5X q2FQ== 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 g66-20020a9d2dc8000000b00617fe6c1057si2064050otb.252.2022.08.04.20.08.10; Thu, 04 Aug 2022 20:08:22 -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 S235521AbiHECiv (ORCPT + 99 others); Thu, 4 Aug 2022 22:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiHECiu (ORCPT ); Thu, 4 Aug 2022 22:38:50 -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 AF5A51EAD2 for ; Thu, 4 Aug 2022 19:38:46 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VLPIjgi_1659667122; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VLPIjgi_1659667122) by smtp.aliyun-inc.com; Fri, 05 Aug 2022 10:38:43 +0800 From: Yang Li To: Rodrigo.Siqueira@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next RESEND] drm/amd/display: Simplify bool conversion Date: Fri, 5 Aug 2022 10:38:41 +0800 Message-Id: <20220805023841.16869-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, 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/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c:109:52-57: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c index 594fe8a4d02b..0c425c2ab2a3 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c @@ -106,7 +106,7 @@ static void vblank_control_worker(struct work_struct *work) dm->active_vblank_irq_count--; dc_allow_idle_optimizations( - dm->dc, dm->active_vblank_irq_count == 0 ? true : false); + dm->dc, dm->active_vblank_irq_count == 0); DRM_DEBUG_KMS("Allow idle optimizations (MALL): %d\n", dm->active_vblank_irq_count == 0); -- 2.20.1.7.g153144c