Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4321079rwb; Mon, 16 Jan 2023 22:17:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXvMLOCZw39ZBr9vjvFt/lcX14yuYH3wiO+MRru7E3gO/gdi7C2VNlVEDZWW8057V9pJsJ1c X-Received: by 2002:a05:6402:3220:b0:49e:1d59:794f with SMTP id g32-20020a056402322000b0049e1d59794fmr5139875eda.22.1673936222486; Mon, 16 Jan 2023 22:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673936222; cv=none; d=google.com; s=arc-20160816; b=QH2j//C1bzHsWd3QA+vmGxMlyTAo8+OerThnBtNs7P9D9ClkGon1v7D7nojKdG9YT1 DiJJR3ZDtRg66kbDZgGkAEAF39NKA9zD0Bp/QovoP2BzBKmHbldQVd0VS15nSE4RfrFD HmCUz8AhLQKi66qpHd8nEBp86zzar9OXV75GWNN9KfwVphO0jqCdJKr9AycFvQzs6xqj wercekPqjkaY+aQr5f2MvhDNr9rzi8el63LwxUxLZzeHWwe9Ez5j21x7yYWR+8R1UU95 bwys5tzrVPex2vkqxOWMan87pvWG6TTm77bXBIeg+443EznBsfUrcQKq4LbkTcKKN+bg bnQg== 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=5ZHAD2Yimvtfv6XzXNqF/TPiwnB9P44m4SVzi6eQc9Q=; b=I4WRWP7DnS2/CxgHIasr/BvFv9r2kvWuM9WumIc8ZNTzr+IYE1Jca/hJcO/U7FkvBM 8DrmJNTPQdYsJXPTXqRMkFllv/L2+rBjLkJq/ZIRONBbVSNv3C9HIwa3uhjz6XQxhQ8p aFjq2YpkBPgFZQeMxuK8tiJnEEeqK9kC4/rlmuhKjghbX9gpgK0PQP7Ui3wpCeReYk5h r0lD+dOAjZo02nTTxg+2NhVORl6pdDAXe5uWYz11aRQuq75JfwzSc9VGilIe1L+fMKGN MssrvR9l2PaxR6So5rQYLMMoYrUrXAo5BPMT/ZW1VDuxNtNJ3acUNcyoM6XcZr/4brdu 5bbQ== 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 m7-20020a056402430700b0048a8f268daesi2202783edc.453.2023.01.16.22.16.49; Mon, 16 Jan 2023 22:17:02 -0800 (PST) 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 S235560AbjAQGAe (ORCPT + 50 others); Tue, 17 Jan 2023 01:00:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbjAQF7u (ORCPT ); Tue, 17 Jan 2023 00:59:50 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC88A22DEE for ; Mon, 16 Jan 2023 21:59:37 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VZls40E_1673935165; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VZls40E_1673935165) by smtp.aliyun-inc.com; Tue, 17 Jan 2023 13:59:33 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 2/3] drm/amd/display: Remove the unused variable value0 Date: Tue, 17 Jan 2023 13:59:21 +0800 Message-Id: <20230117055922.53911-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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,RCVD_IN_MSPIKE_H2, 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 Variable value0 is not effectively used, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:1222:11: warning: variable ‘value0’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3783 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c index c4287147b853..4c067f8a19b4 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c @@ -1219,7 +1219,6 @@ void dcn10_link_encoder_update_mst_stream_allocation_table( const struct link_mst_stream_allocation_table *table) { struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); - uint32_t value0 = 0; uint32_t value1 = 0; uint32_t value2 = 0; uint32_t slots = 0; @@ -1321,13 +1320,9 @@ void dcn10_link_encoder_update_mst_stream_allocation_table( do { udelay(10); - value0 = REG_READ(DP_MSE_SAT_UPDATE); - - REG_GET(DP_MSE_SAT_UPDATE, - DP_MSE_SAT_UPDATE, &value1); - - REG_GET(DP_MSE_SAT_UPDATE, - DP_MSE_16_MTP_KEEPOUT, &value2); + REG_READ(DP_MSE_SAT_UPDATE); + REG_GET(DP_MSE_SAT_UPDATE, DP_MSE_SAT_UPDATE, &value1); + REG_GET(DP_MSE_SAT_UPDATE, DP_MSE_16_MTP_KEEPOUT, &value2); /* bit field DP_MSE_SAT_UPDATE is set to 1 already */ if (!value1 && !value2) -- 2.20.1.7.g153144c