summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-08-27 10:14:25 +0900
committerLee Jones <lee.jones@linaro.org>2014-08-29 08:26:32 +0100
commit5b007dfee8a8a9eac95a866b1dd151e136f47aa8 (patch)
tree83af9028a995fe283a86ba3b96ef8fdaed65c32a /drivers/video/backlight
parent4876b66497ed31fc10e235a34faa80c2de6adace (diff)
downloadop-kernel-dev-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.zip
op-kernel-dev-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.tar.gz
backlight: jornada720: Remove 'else' after a return
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>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/jornada720_bl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/backlight/jornada720_bl.c b/drivers/video/backlight/jornada720_bl.c
index 6ce96b4..7e6ff53 100644
--- a/drivers/video/backlight/jornada720_bl.c
+++ b/drivers/video/backlight/jornada720_bl.c
@@ -41,11 +41,11 @@ static int jornada_bl_get_brightness(struct backlight_device *bd)
dev_err(&bd->dev, "get brightness timeout\n");
jornada_ssp_end();
return -ETIMEDOUT;
- } else {
- /* exchange txdummy for value */
- ret = jornada_ssp_byte(TXDUMMY);
}
+ /* exchange txdummy for value */
+ ret = jornada_ssp_byte(TXDUMMY);
+
jornada_ssp_end();
return BL_MAX_BRIGHT - ret;
OpenPOWER on IntegriCloud