Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp763218imw; Thu, 14 Jul 2022 10:17:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkW/+d7JTwQ7j5RmthqjPU6a7a755WyQvo4xfXF9W1OIMJ4jfFgJdxC7XC5p4cjJn7Cg43 X-Received: by 2002:a17:90b:3a88:b0:1f0:56d5:460e with SMTP id om8-20020a17090b3a8800b001f056d5460emr16831454pjb.208.1657819066180; Thu, 14 Jul 2022 10:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657819066; cv=none; d=google.com; s=arc-20160816; b=KLNm25lvC11QwjeO0bxwYaxRf29hhQbJSOCx/QoJodcMiqhXgs6f/3lz3ZCvQwa/Rx BqKepji0KX5ZR4eD36htcYLyQlWGcDgE1urZN9FlKuSWYxQU9T3lzIEXy60NpDx9G2E3 Hx/L4TkrsmMgnDOeYFxf4wseIxLHDHxxVglTPztFeBeiGyVeUYzs3BtlxgUqofNCGfv1 Jri96QdO9GtVE3Up8CSph1bMXuaeue8WBWbiIVsVGE3K5Ndxz3qd8J8VeQUAB3sC4532 JIJMQPyVtfF6GUMc91AeQye8piWPC7gipmEAXVdq6cJq40k88ZRXT6S3GHpy3C1qdq4A v2EQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IXOMHXEfueTe7r4KHriES2fh4EUIbS9w0svqIhbC1hM=; b=jVpiZuqoko1COtTxD+bR7DPEdVKcdZJznT75MCoZCFOrWQHi35QQGIW81nRbRILUPd 6zwJMWX+r63FU4MWhz7dOjoNuqlA7gDL9aZFiGtyog9Z9VWlvRliq5Suxksfjx1NP0Xh 6XiIPNjbkas2tVKAVV6rHkLnADQN6uVDXwS1F4oh4k8Dx4PyLcATnqY3v3b3aH8NPHM9 4NmukX5SpdVbIopchUzyEENdalaCbzLq7L4Juk3azcOHGuXsto9FHZMgKUxPJueemp1r +1y9oZx8nSjOyPBZLNw35p9bqYvq9f6pCq1K+CS69Ap3hd+xvTZLsTCubRNfPDRO3LCE Ic2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=ms7WgxQb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a63104a000000b003fc1bb74001si2046669pgq.54.2022.07.14.10.17.30; Thu, 14 Jul 2022 10:17:46 -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; dkim=pass header.i=@riseup.net header.s=squak header.b=ms7WgxQb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234681AbiGNQtX (ORCPT + 99 others); Thu, 14 Jul 2022 12:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240028AbiGNQs4 (ORCPT ); Thu, 14 Jul 2022 12:48:56 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D74691FD for ; Thu, 14 Jul 2022 09:46:28 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4LkL3V1QCczDqJC; Thu, 14 Jul 2022 16:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1657817174; bh=DN6suon3TLYpHGgeo/Qz0TzseaZOBH64/Hro/CUPXMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ms7WgxQbypt0b1qjg8StkDCtFoB/Y/+DxKkGPUjj211LSm+aZGuqeInSk3CRdWfjp g0Gt+Vj5xxC9MTyTln1kcDyLUvjNQm7kspjScS0F4NIbqqCtG5IJUEdOUCyB1n9XQ3 1MFWgQzzK2d7wpc1ARQItZDvRxfXxB323MAQcv+0= X-Riseup-User-ID: 39D20A01FAC4C6CE88B26DF60B0505227F3A81DB12ABDEB88706861C003CA16B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LkL3N3jFHz5vW1; Thu, 14 Jul 2022 16:46:08 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mwen@igalia.com, andrealmeid@riseup.net, Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 07/12] drm/amd/display: Remove unused value0 variable Date: Thu, 14 Jul 2022 13:45:02 -0300 Message-Id: <20220714164507.561751-7-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-1-mairacanal@riseup.net> References: <20220714164507.561751-1-mairacanal@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Remove the variable value0 from the function dcn10_link_encoder_update_mst_stream_allocation_table. This was pointed by clang with the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:1223:11: warning: variable 'value0' set but not used [-Wunused-but-set-variable] uint32_t value0 = 0; ^ 1 warning generated. Signed-off-by: MaĆ­ra Canal --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 3 --- 1 file changed, 3 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 fbccb7263ad2..ea7d89bc293f 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 @@ -1220,7 +1220,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; @@ -1322,8 +1321,6 @@ 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); -- 2.36.1