diff options
author | Bernard Zhao <bernard@vivo.com> | 2021-02-02 15:32:03 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-02-05 00:40:48 +0300 |
commit | 5ca6d0268df8d7a4e1e453bc8a1ee3459fde12a2 (patch) | |
tree | 34ee49db3094d775a5ba31fddebe064a5303c1b0 /drivers/gpu/drm/msm/dp/dp_panel.c | |
parent | ce5226625a694fa5a46db241ac4c77a1430e37fe (diff) | |
download | linux-5ca6d0268df8d7a4e1e453bc8a1ee3459fde12a2.tar.xz |
drm/msm: remove unneeded variable: "rc"
remove unneeded variable: "rc".
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/dp/dp_panel.c')
-rw-r--r-- | drivers/gpu/drm/msm/dp/dp_panel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index d1780bcac8cc..9cc816663668 100644 --- a/drivers/gpu/drm/msm/dp/dp_panel.c +++ b/drivers/gpu/drm/msm/dp/dp_panel.c @@ -409,7 +409,6 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel) int dp_panel_init_panel_info(struct dp_panel *dp_panel) { - int rc = 0; struct drm_display_mode *drm_mode; drm_mode = &dp_panel->dp_mode.drm_mode; @@ -436,7 +435,7 @@ int dp_panel_init_panel_info(struct dp_panel *dp_panel) min_t(u32, dp_panel->dp_mode.bpp, 30)); DRM_DEBUG_DP("updated bpp = %d\n", dp_panel->dp_mode.bpp); - return rc; + return 0; } struct dp_panel *dp_panel_get(struct dp_panel_in *in) |