[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220902081203.320165-1-zhang.songyi@zte.com.cn>
Date: Fri, 2 Sep 2022 08:12:03 +0000
From: cgel.zte@...il.com
To: airlied@...ux.ie
Cc: daniel@...ll.ch, jani.nikula@...el.com,
ville.syrjala@...ux.intel.com, lyude@...hat.com,
tzimmermann@...e.de, imre.deak@...el.com,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
zhang songyi <zhang.songyi@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] drm/dp_helper: Remove the unneeded result variable
From: zhang songyi <zhang.songyi@....com.cn>
Return the drm_dp_dpcd_writeb() directly instead of storing it in another
redundant variable.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: zhang songyi <zhang.songyi@....com.cn>
---
drivers/gpu/drm/display/drm_dp_helper.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
index 92990a3d577a..09b282b704fa 100644
--- a/drivers/gpu/drm/display/drm_dp_helper.c
+++ b/drivers/gpu/drm/display/drm_dp_helper.c
@@ -2925,16 +2925,13 @@ EXPORT_SYMBOL(drm_dp_get_pcon_max_frl_bw);
*/
int drm_dp_pcon_frl_prepare(struct drm_dp_aux *aux, bool enable_frl_ready_hpd)
{
- int ret;
u8 buf = DP_PCON_ENABLE_SOURCE_CTL_MODE |
DP_PCON_ENABLE_LINK_FRL_MODE;
if (enable_frl_ready_hpd)
buf |= DP_PCON_ENABLE_HPD_READY;
- ret = drm_dp_dpcd_writeb(aux, DP_PCON_HDMI_LINK_CONFIG_1, buf);
-
- return ret;
+ return drm_dp_dpcd_writeb(aux, DP_PCON_HDMI_LINK_CONFIG_1, buf);
}
EXPORT_SYMBOL(drm_dp_pcon_frl_prepare);
--
2.25.1
Powered by blists - more mailing lists