Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1940506rwb; Fri, 11 Nov 2022 02:44:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cFnPEtIPcAAa9Y9PhHbZmiWNvcCAXBvqv8XWMUkbtgctqa1yISPR7Tp5u1SFIlHLCYys7 X-Received: by 2002:a17:90b:1891:b0:20d:747a:c507 with SMTP id mn17-20020a17090b189100b0020d747ac507mr1266543pjb.145.1668163457247; Fri, 11 Nov 2022 02:44:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668163457; cv=none; d=google.com; s=arc-20160816; b=srsamPcOUEUfDoNvzS9XOqYGy9JmNYxjcAjImHrD/XYTX3rhhQyH0IIwfFvXE+Oq+g wQTecu7MLWMIeEycnrTDs9Dd/JZGyABBVcRMbS1dllWRAhWuQlEkFuGpewy4A40U2JWA VvB84SXdSWwjHvczRST4Lz7OszjQWk3JHtzP4gUbN1iV1xaSlp1vt8lcSMdsqHTH/SRv Av4YulRMVEEErHOHLXu/p6hsSdX/sL1RdjTqHMrhRP+14EsP9nlOldQnCs2wVAdAe1yN KKfCG0QxNPNgzT+Ns95Q+jQdTDf2UaNz1LtfjF6vJ38yAIb0qMoZuV0eIHJC8OnaOtUO Nvyg== 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=CQ3uGp1VxJkKh9l3Ntho1Z6oP9v1PdSKTNCju6L6xoQ=; b=nYVH/xqdEztRalEqtfvm1qak6rA+Owwv1cxTGmfeytU7O/TkfBGzbitItUkSZpzTA1 OPk4OUof6Gne+FzOaKgDzhV/RktF1B7DQ5pyU3MO7yiZlGQgrin4aucbiAiQo8G8i3Uw 4F8YqCm+3Qe+AnXX94yg9MfxCWwZt4tkDfxMdP8OQD22JbVJcsGbG83FYu4PEfcD1II6 RZ0oEfneFLUMoepcyzzbz6HP+xQxa7zZGntE9ss9ODiIKOuI6bPF7Ql9QRJvXJ7sjwFx Wb+NcUnKafhzGZ7bpUdx6ZoFF17c8bPQocYf7BKw9CPIpZolU+9zdC/9yNVa2Gwaca58 SAxQ== 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 c6-20020a056a000ac600b0054116441045si2180135pfl.281.2022.11.11.02.44.04; Fri, 11 Nov 2022 02:44:17 -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 S233615AbiKKJrG (ORCPT + 92 others); Fri, 11 Nov 2022 04:47:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233576AbiKKJrE (ORCPT ); Fri, 11 Nov 2022 04:47:04 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D091EDF6 for ; Fri, 11 Nov 2022 01:47:02 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R971e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VUWwVVH_1668160012; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUWwVVH_1668160012) by smtp.aliyun-inc.com; Fri, 11 Nov 2022 17:46:59 +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] drm/amd/display: remove set but unused variable 'state' Date: Fri, 11 Nov 2022 17:46:49 +0800 Message-Id: <20221111094649.102283-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 The variable state is not effectively used in the function, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1613:24: warning: variable ‘state’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3027#c0 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c index f7fea3544c31..df477a53b64a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c @@ -1610,7 +1610,6 @@ bool dcn32_acquire_post_bldn_3dlut( struct dc_transfer_func **shaper) { bool ret = false; - union dc_3dlut_state *state; ASSERT(*lut == NULL && *shaper == NULL); *lut = NULL; @@ -1619,7 +1618,6 @@ bool dcn32_acquire_post_bldn_3dlut( if (!res_ctx->is_mpc_3dlut_acquired[mpcc_id]) { *lut = pool->mpc_lut[mpcc_id]; *shaper = pool->mpc_shaper[mpcc_id]; - state = &pool->mpc_lut[mpcc_id]->state; res_ctx->is_mpc_3dlut_acquired[mpcc_id] = true; ret = true; } -- 2.20.1.7.g153144c