summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/dp/dp_panel.c
diff options
context:
space:
mode:
authorzuoqilin <zuoqilin@yulong.com>2021-03-18 04:24:22 +0100
committerRob Clark <robdclark@chromium.org>2021-06-23 16:33:53 +0200
commit48c305808da700cda1a476f77e0a2ad50dd2e8b4 (patch)
tree14635e384983411197e9beec9af20ea9709ea0dd /drivers/gpu/drm/msm/dp/dp_panel.c
parentdrm/msm: Convert to use resource-managed OPP API (diff)
downloadlinux-48c305808da700cda1a476f77e0a2ad50dd2e8b4.tar.xz
linux-48c305808da700cda1a476f77e0a2ad50dd2e8b4.zip
drm/msm: Remove unneeded variable: "rc"
Remove unneeded variable: "rc". Signed-off-by: zuoqilin <zuoqilin@yulong.com> Link: https://lore.kernel.org/r/20210318032422.1285-1-zuoqilin1@163.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.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.c3
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 88196f7e4406..440b32753430 100644
--- a/drivers/gpu/drm/msm/dp/dp_panel.c
+++ b/drivers/gpu/drm/msm/dp/dp_panel.c
@@ -350,7 +350,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;
@@ -403,7 +402,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)