diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 10:14:25 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 08:26:32 +0100 |
commit | 5b007dfee8a8a9eac95a866b1dd151e136f47aa8 (patch) | |
tree | 83af9028a995fe283a86ba3b96ef8fdaed65c32a /drivers/video/backlight | |
parent | 4876b66497ed31fc10e235a34faa80c2de6adace (diff) | |
download | linux-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.tar.gz linux-5b007dfee8a8a9eac95a866b1dd151e136f47aa8.tar.bz2 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/backlight')
-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; |