diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 03:14:25 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 09:26:32 +0200 |
commit | 5b007dfee8a8a9eac95a866b1dd151e136f47aa8 (patch) | |
tree | 83af9028a995fe283a86ba3b96ef8fdaed65c32a /drivers/video | |
parent | backlight: wm831x_bl: Add blank line after declarations (diff) | |
download | linux-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.tar.xz linux-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.zip |
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.c | 6 |
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; |