Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3693689pxf; Mon, 15 Mar 2021 16:23:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2eLD0S1+yfN2OX3KjThqXRR632TfPoGCcne5CJwYj0LYI0JUb3xXzjx8MNImNesxqiCL3 X-Received: by 2002:a05:6402:1c1b:: with SMTP id ck27mr32693252edb.223.1615850620678; Mon, 15 Mar 2021 16:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615850620; cv=none; d=google.com; s=arc-20160816; b=IRcw6gWuOjxCmopbWh5lTOgzqmQY79Q5QDlTMUJNLAd3hxQoHp0fSC8MyGAtjkNDku 57HWZNri/0GB7o7t8kfuOLewLGQ6pWZcTEtsleSEgialKIYbWua6TVV0j3NMO6gyrqTr lkGcYyxS3k9cscGQKIAt9Lb0HtWb8W1ltgb9uB1OjkeFR8vdpCLwhfcijXtjOdOJYyRd zST7dnv0/70YvWPMDjfNx8ZIZ2SZ1LcZcaJ80Ae4W6YV7FINHVJpcmh1mJJqIQIK4XwC xfuiTgu2XFQmk69CTGW9hK3z6EnidKpFrkwTbA8ZvxduMGMwiqZ5hsvnGrCThN/YJtaj gSew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qgTmUjpAgS3oY88pdR8n43/ojqKRMNQdI1zf/7d2y7M=; b=CJY6iyBI8xcRYpy3MToHmO6Euxpy0hKqGixt/PVJN5oF93goutZHMqqw82wHloB831 X7Q3cVNUni4vYbcwmLMtm5iffZFw+9RRp8+A6kiYmaimEds+TFZf+3zEEaIE7wXMqYlW WnGMaJlzmR2JnXvJubic43zcZfMZ++NwQAYwv2rtqT8QbQlgD7qLNRWGCp9866Z+PVOm Gx8Qgf5x4HuMqQmWYgfSkvUuRLqAqx1H30U1+tpvGf27j9HjvQWLonaWdj/YayIyrOsn SV6NxCryUXwkSYjwrNrZqS84RHPwS5LUSPkGRIuApClL+YZAHzWKAbdrR0GVsMdh7IbS WvJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsQmoe0R; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si11830361eji.445.2021.03.15.16.23.18; Mon, 15 Mar 2021 16:23:40 -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=@gmail.com header.s=20161025 header.b=lsQmoe0R; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbhCOSUm (ORCPT + 99 others); Mon, 15 Mar 2021 14:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232013AbhCOSU2 (ORCPT ); Mon, 15 Mar 2021 14:20:28 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0365FC06174A; Mon, 15 Mar 2021 11:20:28 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id 101-20020a9d04ee0000b02901b506659320so5594623otm.7; Mon, 15 Mar 2021 11:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qgTmUjpAgS3oY88pdR8n43/ojqKRMNQdI1zf/7d2y7M=; b=lsQmoe0RiNR+jpApt3STJZDJUtuFImFAiD9QoNiIYO6y20pPJBBar89/PeF1lajqvL PE7PckeqNmolEc+09hLVnPOND3Za2nv2LkTxqd6t3zH06khxIPHswaeCyIczUsgedHsz tPVgkgaXNewd5XxYvAXYPUSLy76NwaYlMKXLtiZz9Q+npnXLheUux0fBJ0LojMSSrf+x RB1UFaGgSlaKkf2hbUz6Ij6zYbm6cdvJMN6gfbG29PGUAJ0zjJ+XWLG2o6k6jWTg9/x8 sy1+PSc1bdle27kJf40dpjWGmx3A0CBvObWwJeUS7mER2VPdWKy1M9X+JVISVC39gL9U ZZlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qgTmUjpAgS3oY88pdR8n43/ojqKRMNQdI1zf/7d2y7M=; b=gB0ySSvOFWd6lUlurqsAV558ug0YzhGWChAp1J+MbmV+EDiPcCZuOl56A4YS+rgpbx KcSJX1qUpLPErxwhfzFiHUsmrHq52WYqs6x2+1/yq7g5nUh5TNVfay+CCWGlQ823bmoh JUDeVuxOfk42RwQX3DNQrHQ3WabVz7riOAlfVd3YJlG5wiXhF3FHqV8AJ+5MYgUIXEXz h/oyDNaKsWjsCOqeZk67NAbh4+QEOtAbMveM4iarf/paVcB5P8ZB2qEEne9mFvrO7SGj 8KnUFB1IWZYBRKHBAMXUtnD/1rnGKnHL4o9MLvjFO0mUToByAvlKOfGcqd+x6UKqHAhW 57IQ== X-Gm-Message-State: AOAM533ye2y17DrQBYf0fHrOESrIKm3Ex1zooTUANUbdW/VM6oy2tZVK p96baNBOYj6bNNtVrK6HPJ8MMQg93HQA5AxAIsU= X-Received: by 2002:a9d:20c3:: with SMTP id x61mr309400ota.311.1615832427497; Mon, 15 Mar 2021 11:20:27 -0700 (PDT) MIME-Version: 1.0 References: <20210311163417.59967-1-colin.king@canonical.com> In-Reply-To: <20210311163417.59967-1-colin.king@canonical.com> From: Alex Deucher Date: Mon, 15 Mar 2021 14:20:16 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: remove redundant initialization of variable result To: Colin King Cc: Harry Wentland , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Thu, Mar 11, 2021 at 11:34 AM Colin King wrote: > > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel