drm/msm: remove no need local variable
PATCH 1/1 drm/msm: remove no need local variable
Unneeded variable: "ret". Return "0" on line 880
Signed-off-by Bernard Zhao <[email protected]>
--- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_panel.c +1 -2
@@ -351,7 +351,6 @@ void dp_panel_dump_regs(struct dp_panel *dp_panel)int dp_panel_timing_cfg (struct dp_panel *dp_panel) { -int rc =0 ;u32 data, total_ver, total_hor;struct dp_catalog *catalog;struct dp_panel_private *panel;
@@ -404,7 +403,7 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel)dp_catalog_panel_timing_cfg (catalog); panel->panel_on = true; -return rc; +return 0 ; }int dp_panel_init_panel_info (struct dp_panel *dp_panel)
Signature · 1 line
2.31.0
Quoting Bernard Zhao (2021-06-05 05:35:20)
Quoted 1 line
Unneeded variable: "ret". Return "0" on line 880
But the variable is "rc".
Quoted 3 lines
Signed-off-by Bernard Zhao <[email protected]>---
Otherwise
Reviewed-by Stephen Boyd <[email protected]>