summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-09-21 21:10:18 +0800
committerSam Ravnborg <sam@ravnborg.org>2020-09-24 21:41:09 +0200
commitb809979f112b6079acdae2649e2696f0cc812f84 (patch)
treee2581432fd7ea7800f45e62cb6eb1cee9b35c540 /drivers/gpu
parente8c93e0c6a1207ad96e99849410f2f5f4af853ff (diff)
downloadlinux-stable-b809979f112b6079acdae2649e2696f0cc812f84.tar.gz
linux-stable-b809979f112b6079acdae2649e2696f0cc812f84.tar.bz2
linux-stable-b809979f112b6079acdae2649e2696f0cc812f84.zip
drm/panel: simplify the return expression of td028ttec1_prepare
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200921131018.91513-1-miaoqinglang@huawei.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/panel/panel-tpo-td028ttec1.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
index 037c14fd6bac..ba0c00d1a001 100644
--- a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
+++ b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
@@ -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)