Commit ba43961b authored by Liu Shixin's avatar Liu Shixin Committed by Sam Ravnborg
Browse files

drm/panel: simplify the return expression of rb070d30_panel_enable()

parent 7604caa1
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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)