Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp564082pxt; Fri, 6 Aug 2021 08:28:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMtHnQxNC/jgfrLsJU2+btDX716InY0b41XhN8ar/6dc9937hgqsIUW1tNoQmDZvn1UAyK X-Received: by 2002:a05:6638:15:: with SMTP id z21mr10256488jao.25.1628263709232; Fri, 06 Aug 2021 08:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628263709; cv=none; d=google.com; s=arc-20160816; b=BagSoUV0oGxdgy9Nwmebt1AWQSt6uMRDN4qT1fGO3sWClM7cw7XoTWBor+Equ9dSDs dNeFe4VibqNdd+yB1VIvIV4Y9d7J1KI5aDeBg9wGzfwMXreET0vFvX8cnocDo6V0yzQx pYHlEwrzcKpXBH/WHxYVTuN+MeAEChjEoe6xhCopflb4Nl+CzkyFyZ5rfjzQ+JpBBbFo edN0WrwlT9n1Jqk1nx//uKGInyQ4J7CC7KqxXUwtaTcxUMdCTz+M+IVqPNKdwRTeHfGl RV0Qf2k+/lHjYzay/24vsHCCwSWKqfbdMKa18Ht2J+B/s/uLljzbNWBwH7OrG68byN1b oKKw== 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:dkim-signature; bh=K45ys8L4xpEH11ycYMqx65JY8D/NZO6D2I6izRFfqSQ=; b=eMijVlsF9g9L4Q1QXieWedEYeFQrZbVfl5c5u1lQIkYqm2TI/LYqQH/ykseBygvCDr J3qBsP9jYN49r9PkEQ9cXjBsEljdT7SnpHVt+z/yEAmJzuO5TifSgpIKJYnTjD2QD7AK ud2DE8I3bT67NBE3coxHAfrrxsw5GlQzfdKguLChIfOdsb1FIPTFwc2YcfbkM6XpB8x8 pLFW7Iu+/yLjD2XHQ9jMHDH+1qenGI1hOQEtYI3O/ffRBV4b8yTRtnBkOhHTfRf1jEGO 6dx3I/mj7Jy3N7NddTUDKTj2XgAvgCe86/UTkfE6o4uk09oRIlG6H8FBHzVPmpuFgoZu JFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=DbKJ6NXp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si5105052iow.3.2021.08.06.08.28.16; Fri, 06 Aug 2021 08:28:29 -0700 (PDT) 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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=DbKJ6NXp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245383AbhHFLQf (ORCPT + 99 others); Fri, 6 Aug 2021 07:16:35 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:45056 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245386AbhHFLQd (ORCPT ); Fri, 6 Aug 2021 07:16:33 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id BDD7940643; Fri, 6 Aug 2021 11:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628248575; bh=K45ys8L4xpEH11ycYMqx65JY8D/NZO6D2I6izRFfqSQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=DbKJ6NXpyHS7Z4kymvh06e4xGVUc+/yPsDHdsRSaREBxhB5LfgLdaySs9Zac5BW5/ kLdpE6Kwrz5uvGe89Jf3/Ry+408QWbOwV6Ege7VV3eIDafjhbLxE0rmQ4ugs4szmTL miRxov5oY6+OXPwIYiNzvnIVtwYz4UtxRnMJaTyH67Jt35xgrrxZmHVehuixp2ZksD 9qQLnC/2y3cNmiNkaPKMM3Lmt8Qt4HpZ0j47N89c2GmciAvbcaud5LD8LZ/tnOX7gX 8IMQpWYyJTqGa7QDQ36otWa1Uef5zOCWVbZH/01lJ8ySqNd0qFoMxkRTn2gPMeINvM P2b7yDENeoZNQ== From: Colin King To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , Jun Lei , Jimmy Kizito , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: Remove redundant initialization of variable eng_id Date: Fri, 6 Aug 2021 12:16:15 +0100 Message-Id: <20210806111615.11803-1-colin.king@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The variable eng_id is being initialized with a value that is never read, it is being re-assigned on the next statment. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c index 1a89d565c92e..de80a9ea4cfa 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c @@ -305,7 +305,7 @@ struct link_encoder *link_enc_cfg_get_next_avail_link_enc( const struct dc_state *state) { struct link_encoder *link_enc = NULL; - enum engine_id eng_id = ENGINE_ID_UNKNOWN; + enum engine_id eng_id; eng_id = find_first_avail_link_enc(dc->ctx, state); if (eng_id != ENGINE_ID_UNKNOWN) -- 2.31.1