diff options
author | Liu Shixin <liushixin2@huawei.com> | 2020-09-15 11:26:23 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-10-17 08:10:42 +0200 |
commit | ba43961b2dcb0ea39b3bbed951060da891a765b8 (patch) | |
tree | 87897e67806ea7c2c52baa7b1e1d2a81b90f35b3 /drivers/gpu/drm/panel | |
parent | 7604caa1f09911a290fcfa1f57ff2e573af0e887 (diff) | |
download | lwn-ba43961b2dcb0ea39b3bbed951060da891a765b8.tar.gz lwn-ba43961b2dcb0ea39b3bbed951060da891a765b8.zip |
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
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r-- | drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c index 535c8d1cca21..a3782830ae3c 100644 --- a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +++ b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c @@ -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) |