Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578747pxb; Mon, 8 Mar 2021 00:40:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQvjA/FJjIXliB2nqwqK3Rl66eE/MyMJy9Ft0IF48tqR/q3kLbcMpFLNtVSED4f2VDae4u X-Received: by 2002:a17:906:eb4e:: with SMTP id mc14mr13593665ejb.169.1615192836523; Mon, 08 Mar 2021 00:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192836; cv=none; d=google.com; s=arc-20160816; b=YIDcMPjWwZF8IekvZnMC94i+xGUjlKEAqrwyijihGTKKEz9FsCAgwAujt4JH9b7xLI pKtfU79qB7qNZvEa78WQxnLZPe61FxG7O8xwOItDJiirbthbShAttW9Zuz36kSLXdPGS huWpkN7gVlnESQmRNOugrswrH1cfXabj/kvOxgijuH42Z4PMA+rTXZW/iB7oZTxQxXbD Il4jirNjgjJE8FYIQkDJDy3HgR3tl87FFaNsyZZ/RFCTr1nArexIIF5El64lDr2cQo0z R1TETLrdMCx0mwxJSo3bdTK4BVjuzRbx9XqjLbu+C064FxZvAYmJTVScp9dDnYO281z3 VEhg== 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=MjPwKjq2UdTcLRZOIBtzCHqfPLvdBR4xVUmKgZPS654=; b=Sz9oX2d2cDOkoNiTYwYuKoi2N+U25sQtoa3DBE+b5QfcmsnOkbCAD4Qg6n5KfZjVyZ DGSUnsaWEm7jldJTNjXwX9n/HzPjvS4FNVgFoprUHpECDBSIou7N4jisFCGAMT8Ld0cu 8GjR8ZHz+xb3rWwnOrNxHLfLU3MLGpIioQoAqYc7xbrtQAr7rEAAE5zPo+XwyREt8iu5 jbiNdfEXbgLng2Y53hgHDqcWpxA6OFRW4igCU+0P0YsC0QfP7NuVTMdgVVba8br3wxGp F6KvES1Ad/qGjvfmtAfh4E5tJQFf4H1CfwUsOxd+Cnhfdk5kVwt8TewdV8jITmJB8wIH OZ0A== 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 f14si3275324edd.140.2021.03.08.00.40.13; Mon, 08 Mar 2021 00:40:36 -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 S232452AbhCHDAy (ORCPT + 99 others); Sun, 7 Mar 2021 22:00:54 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:37000 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbhCHDA0 (ORCPT ); Sun, 7 Mar 2021 22:00:26 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UQoFBD6_1615172408; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UQoFBD6_1615172408) by smtp.aliyun-inc.com(127.0.0.1); Mon, 08 Mar 2021 11:00:24 +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: Remove unnecessary conversion to bool Date: Mon, 8 Mar 2021 11:00:07 +0800 Message-Id: <1615172407-4847-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/core/dc_link_ddc.c:561:34-39: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c index ae6484a..42a4177 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c @@ -558,7 +558,7 @@ bool dal_ddc_service_query_ddc_data( /* should not set mot (middle of transaction) to 0 * if there are pending read payloads */ - payload.mot = read_size == 0 ? false : true; + payload.mot = !(read_size == 0); payload.length = write_size; payload.data = write_buf; -- 1.8.3.1