projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
547f60c
)
backlight: ld9040: Remove 'else' after a return
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 27 Aug 2014 01:11:52 +0000
(10:11 +0900)
committer
Lee Jones
<lee.jones@linaro.org>
Fri, 29 Aug 2014 07:25:14 +0000
(08:25 +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/ld9040.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/backlight/ld9040.c
b/drivers/video/backlight/ld9040.c
index ccb44e8e492721e981bc09dd98e58338020f6c48..f71eaf10c4ebddac11a32b5ec5baf03519743dc0 100644
(file)
--- a/
drivers/video/backlight/ld9040.c
+++ b/
drivers/video/backlight/ld9040.c
@@
-566,11
+566,11
@@
static int ld9040_power_on(struct ld9040 *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 = ld9040_ldi_init(lcd);
if (ret) {
dev_err(lcd->dev, "failed to initialize ldi.\n");