summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-08-27 05:14:25 +0400
committerLee Jones <lee.jones@linaro.org>2014-08-29 11:26:32 +0400
commit5b007dfee8a8a9eac95a866b1dd151e136f47aa8 (patch)
tree83af9028a995fe283a86ba3b96ef8fdaed65c32a /drivers/video
parent4876b66497ed31fc10e235a34faa80c2de6adace (diff)
downloadlinux-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.tar.xz
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')
-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 6ce96b4a8796..7e6ff5346892 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;