projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe9a862
)
backlight: ams369fg06: Remove 'else' after a return
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 27 Aug 2014 01:10:34 +0000
(10:10 +0900)
committer
Lee Jones
<lee.jones@linaro.org>
Fri, 29 Aug 2014 07:24:28 +0000
(08:24 +0100)
Fixed the following checkpatch warning.
WARNING: else is not generally useful after a break or return
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/ams369fg06.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/backlight/ams369fg06.c
b/drivers/video/backlight/ams369fg06.c
index 4726c8be626f3dc794dfb137da1353a0d69ed887..5f897f99cc9b68c154207bfaad4461137977ea97 100644
(file)
--- a/
drivers/video/backlight/ams369fg06.c
+++ b/
drivers/video/backlight/ams369fg06.c
@@
-325,11
+325,11
@@
static int ams369fg06_power_on(struct ams369fg06 *lcd)
if (!pd->reset) {
dev_err(lcd->dev, "reset is NULL.\n");
return -EINVAL;
- } else {
- pd->reset(lcd->ld);
- msleep(pd->reset_delay);
}
+ pd->reset(lcd->ld);
+ msleep(pd->reset_delay);
+
ret = ams369fg06_ldi_init(lcd);
if (ret) {
dev_err(lcd->dev, "failed to initialize ldi.\n");
This page took
0.024715 seconds
and
5
git commands to generate.