Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp517208pxf; Thu, 11 Mar 2021 08:38:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlNu8pTeDT/3f8Jj4ZdgYLleopWRJXjJbYvjTBG+AWOxpzMltN1SH6jjznQUUeKFKja0uo X-Received: by 2002:a17:906:86c1:: with SMTP id j1mr4063425ejy.373.1615480695729; Thu, 11 Mar 2021 08:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615480695; cv=none; d=google.com; s=arc-20160816; b=pbWPKroh83a3nCBEYMxZAxjSmmxXA6o7XOLqe+9OtpC3paJVDl51rpisw0NnDg98Zz eHVYxtavC+E15RWTg/qc+2SEsUF+80rxMTnxTrQ4YKJboe5ZpWrbI8R6jvw8rpp6TaA/ 5DnLNs871gvamF4PNSLMWshi6S74jTJA7DamAw39dwr/lGbY5+tIAdhaemE24QGkRv3u J5ULv7qyMt3ky0s1ZQgXIVBmu2b3uhSPHcnVClR3nDjEzfscXa6m0aH6FV7dbfLHEdPM BD0tGHc1sBwyhcQgUt8Ai4M3x3xWr6UnAwN5BFiNK/iwkWqkgHRwi2LfthX7I/fcTI4H OvjQ== 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=FAFF307oGZzdwY92Izz0/mmpwlZsFMxqcr9cePnaaa0=; b=aoKfic7+QwEJZ4naEkjqH2jAVVYNXTMnwHLNf38d1qK9T2R/OLob5ZCvlAyyv2FoNq ev6VZ26b0qwnAo5kc+o0orPPzJDF5qHthqldfePG1gbVQ+T+Rt/9iXkKPy5Qsy2Nedpa 8cRdo19XQg/xQvJINDd/5xL7BgB9NAydNLo4JMcewCLwLkPbpp2NdTZygK9o5YGG9UTd Aux9Ap6FKmZq4DciRVGbY7JTKEEwcrf5HqEQ1MFTC2QfITQanM97mYM6fEg1ByCWANld Sqjv1+0hOAnxPwjHZ/udqG62s/xvpbH5cY3SMAEocQU+e111Howss1nt7FKvYHtCQqIL rk7g== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si2134189edr.159.2021.03.11.08.37.53; Thu, 11 Mar 2021 08:38:15 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbhCKQey (ORCPT + 99 others); Thu, 11 Mar 2021 11:34:54 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:36946 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhCKQeW (ORCPT ); Thu, 11 Mar 2021 11:34:22 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lKOGP-0002rH-Sv; Thu, 11 Mar 2021 16:34:18 +0000 From: Colin King To: Harry Wentland , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , 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 result Date: Thu, 11 Mar 2021 16:34:17 +0000 Message-Id: <20210311163417.59967-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.2 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 result is being initialized with a value that is never read and it is being updated later with a new value. The initialization 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_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 099f43709060..47e6c33f73cb 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -4281,7 +4281,7 @@ void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) if (edp_config_set.bits.PANEL_MODE_EDP != panel_mode_edp) { - enum dc_status result = DC_ERROR_UNEXPECTED; + enum dc_status result; edp_config_set.bits.PANEL_MODE_EDP = panel_mode_edp; -- 2.30.2