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
This commit is contained in:

committed by
Sam Ravnborg

parent
1a3fb59085
commit
c3ee8c65f6
@@ -380,9 +380,7 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = drm_panel_add(&st7701->panel);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
drm_panel_add(&st7701->panel);
|
||||
|
||||
mipi_dsi_set_drvdata(dsi, st7701);
|
||||
st7701->dsi = dsi;
|
||||
|
Reference in New Issue
Block a user