summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
diff options
context:
space:
mode:
authorBernard Zhao <bernard@vivo.com>2020-08-01 15:02:13 +0300
committerSam Ravnborg <sam@ravnborg.org>2020-08-02 09:59:06 +0300
commitc3ee8c65f63799b02e1fb828bac99fd5008fb565 (patch)
tree98d499bd08fe087dcd695457fb9ec22e4880912b /drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
parent1a3fb590856a9d7e8392d970fc07791b6703de94 (diff)
downloadlinux-c3ee8c65f63799b02e1fb828bac99fd5008fb565.tar.xz
drm/panel: remove return value of function drm_panel_add
The function "int drm_panel_add(struct drm_panel *panel)" always returns 0, this return value is meaningless. Also, there is no need to check return value which calls "drm_panel_add and", error branch code will never run. Signed-off-by: Bernard Zhao <bernard@vivo.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200801120216.8488-1-bernard@vivo.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c')
-rw-r--r--drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
index b2e58935529c..16dbf0f353ed 100644
--- a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
+++ b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c
@@ -261,7 +261,9 @@ static int sharp_nt_panel_add(struct sharp_nt_panel *sharp_nt)
if (ret)
return ret;
- return drm_panel_add(&sharp_nt->base);
+ drm_panel_add(&sharp_nt->base);
+
+ return 0;
}
static void sharp_nt_panel_del(struct sharp_nt_panel *sharp_nt)