diff mbox series

drm/msm/dp: Delete unused local parameters

Message ID 1609233447-61380-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
State New, archived
Headers show
Series drm/msm/dp: Delete unused local parameters | expand

Commit Message

tiantao (H) Dec. 29, 2020, 9:17 a.m. UTC
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@hisilicon.com>
---
 drivers/gpu/drm/msm/dp/dp_link.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

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;
 }
 
 /**