projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c93e0
)
drm/panel: simplify the return expression of td028ttec1_prepare
author
Qinglang Miao
<miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:10:18 +0000
(21:10 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Thu, 24 Sep 2020 19:41:09 +0000
(21:41 +0200)
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
drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
b/drivers/gpu/drm/panel/panel-tpo-td028ttec1.c
index
037c14f
..
ba0c00d
100644
(file)
--- 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)