Commit b809979f authored by Qinglang Miao's avatar Qinglang Miao Committed by Sam Ravnborg
Browse files

drm/panel: simplify the return expression of td028ttec1_prepare

parent e8c93e0c
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -242,13 +242,8 @@ static int td028ttec1_prepare(struct drm_panel *panel)
static int td028ttec1_enable(struct drm_panel *panel)
{
	struct td028ttec1_panel *lcd = to_td028ttec1_device(panel);
	int ret;

	ret = jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL);
	if (ret)
		return ret;

	return 0;
	return jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL);
}

static int td028ttec1_disable(struct drm_panel *panel)