From: Liu Shixin Date: Tue, 15 Sep 2020 03:26:23 +0000 (+0800) Subject: drm/panel: simplify the return expression of rb070d30_panel_enable() X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~28^2~1609 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba43961b2dcb0ea39b3bbed951060da891a765b8;p=platform%2Fkernel%2Flinux-rpi.git drm/panel: simplify the return expression of rb070d30_panel_enable() Simplify the return expression. Signed-off-by: Liu Shixin Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200915032623.1772361-1-liushixin2@huawei.com --- diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c index 535c8d1..a378283 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)