Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1076507pxb; Fri, 26 Feb 2021 01:46:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAzwlqT1cv7knkwCBVbFahlvJA/LjRLKqam8QMe0u3Z6GaK75pm0it8KTXqMQeTd9xJ3B5 X-Received: by 2002:a17:906:c08e:: with SMTP id f14mr2472734ejz.388.1614332783069; Fri, 26 Feb 2021 01:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614332783; cv=none; d=google.com; s=arc-20160816; b=FsI/FuqdMOSyBAlAK6gSOtN4h4kn4KPjZmzGCeOR2F8uEoQCykWoxVXoLipLnGA1TS zyl7wImvOoK/ODpYtSguGeH7Tab0CmhVoDN8ZUE+06XlQDY/54jQuZwxccTHz4Y+v5Is MLKxcKxSdAvs+ZsR+/ippRi2RMbdsJd6nHFhU+8T7SPJ+Mb0m/ycq1dTEnpJD/l0nb8C QTF+o5bsVQAzdCnVNio+2gOq6VAWDVJQo/JkT4s7Tn4Xq+fJXh7xwBr+1bDvO9r1bIe0 5ubFQ8m0RPsGsUdUjsC3JJz79bPcZB5dL6nSkzasrG+/F9HLJNk6qDFQf1VdbsmepvoB Ra0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=drNFzRwImWAMUfJNe08laVhPyDGacMBn2Hj6l+KBkRM=; b=e6FsHBJVmK8aNQL14DmtVxdYN1uzPtGHbd635E/H9FgGfxDsY8NQ093QE5XaNJZmEY wo9MEIPeJspYugZTBwJ9RdHpZazDxUtxoASUtI8DjT/0daN6kzjzgYL97GZ3LRA2EBui ScED7T1U+r2iW3ZvmKiHAmiRKnXLlC1u9kPl4Xs5k/jIG64Q2Wj/eVVQeRghQYjFIoSi nyL6b5fnEvdluOpCYlIRM+EtvsWY2gvbATIz/OHdyveHOMh/S4lBBTOshdmboertjCNa 3EciUm++7p6CIyk6BCvJJ0oeRzlykq+uWtbVNG9QxbxXDgabyfTKVmtUCn1bd0IDuSM0 1Mug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si5442260ejo.166.2021.02.26.01.46.00; Fri, 26 Feb 2021 01:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230347AbhBZJn1 (ORCPT + 99 others); Fri, 26 Feb 2021 04:43:27 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:42643 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbhBZJm4 (ORCPT ); Fri, 26 Feb 2021 04:42:56 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UPdKeHq_1614332528; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPdKeHq_1614332528) by smtp.aliyun-inc.com(127.0.0.1); Fri, 26 Feb 2021 17:42:13 +0800 From: Jiapeng Chong To: harry.wentland@amd.com Cc: sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drm/amd/display/dc/dce/dmub_psr: Remove unnecessary conversion to bool Date: Fri, 26 Feb 2021 17:42:07 +0800 Message-Id: <1614332527-5014-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c:273:16-21: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c index 69e34be..c13f967 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c @@ -269,8 +269,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub, copy_settings_data->frame_cap_ind = psr_context->psrFrameCaptureIndicationReq; copy_settings_data->init_sdp_deadline = psr_context->sdpTransmitLineNumDeadline; copy_settings_data->debug.u32All = 0; - copy_settings_data->debug.bitfields.visual_confirm = dc->dc->debug.visual_confirm == VISUAL_CONFIRM_PSR ? - true : false; + copy_settings_data->debug.bitfields.visual_confirm = dc->dc->debug.visual_confirm == VISUAL_CONFIRM_PSR; copy_settings_data->debug.bitfields.use_hw_lock_mgr = 1; dc_dmub_srv_cmd_queue(dc->dmub_srv, &cmd); -- 1.8.3.1