mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
drm/panel: simplify the return expression of rb070d30_panel_enable()
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200915032623.1772361-1-liushixin2@huawei.com
This commit is contained in:
parent
7604caa1f0
commit
ba43961b2d
@ -75,13 +75,8 @@ static int rb070d30_panel_unprepare(struct drm_panel *panel)
|
||||
static int rb070d30_panel_enable(struct drm_panel *panel)
|
||||
{
|
||||
struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel);
|
||||
int ret;
|
||||
|
||||
ret = mipi_dsi_dcs_exit_sleep_mode(ctx->dsi);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return mipi_dsi_dcs_exit_sleep_mode(ctx->dsi);
|
||||
}
|
||||
|
||||
static int rb070d30_panel_disable(struct drm_panel *panel)
|
||||
|
Loading…
Reference in New Issue
Block a user