Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Liu Shixin and committed by
Sam Ravnborg
ba43961b 7604caa1

+1 -6
+1 -6
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
··· 75 75 static int rb070d30_panel_enable(struct drm_panel *panel) 76 76 { 77 77 struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel); 78 - int ret; 79 78 80 - ret = mipi_dsi_dcs_exit_sleep_mode(ctx->dsi); 81 - if (ret) 82 - return ret; 83 - 84 - return 0; 79 + return mipi_dsi_dcs_exit_sleep_mode(ctx->dsi); 85 80 } 86 81 87 82 static int rb070d30_panel_disable(struct drm_panel *panel)