[PATCH] drm/msm/dp: Delete unused local parameters
Tian Tao
tiantao6 at hisilicon.com
Tue Dec 29 09:17:27 UTC 2020
Fixes coccicheck warnings:
drivers/gpu/drm/msm/dp/dp_link.c:848:5-8: Unneeded variable: "ret".
Return "0" on line 880
Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
---
drivers/gpu/drm/msm/dp/dp_link.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
index be986da..0c9a79f 100644
--- a/drivers/gpu/drm/msm/dp/dp_link.c
+++ b/drivers/gpu/drm/msm/dp/dp_link.c
@@ -845,8 +845,6 @@ bool dp_link_send_edid_checksum(struct dp_link *dp_link, u8 checksum)
static int dp_link_parse_vx_px(struct dp_link_private *link)
{
- int ret = 0;
-
DRM_DEBUG_DP("vx: 0=%d, 1=%d, 2=%d, 3=%d\n",
drm_dp_get_adjust_request_voltage(link->link_status, 0),
drm_dp_get_adjust_request_voltage(link->link_status, 1),
@@ -877,7 +875,7 @@ static int dp_link_parse_vx_px(struct dp_link_private *link)
link->dp_link.phy_params.v_level,
link->dp_link.phy_params.p_level);
- return ret;
+ return 0;
}
/**
--
2.7.4
More information about the dri-devel
mailing list