]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: ams369fg06: remove redundant variable 'before_power'
authorJingoo Han <jg1.han@samsung.com>
Thu, 7 Feb 2013 01:27:25 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:03 +0000 (16:47 +1100)
commit8ace501d982c1e6a2173d585750c9f115e86745d
tree03736792871f49b5941a0175b8b2521cbcc77db1
parent38dade5b19d4ff854a3a1ffc4c494f9d6924a884
backlight: ams369fg06: remove redundant variable 'before_power'

'before_power' was used to check the previous status when resume() is
called.  However, FB_BLANK_POWERDOWN was used in suspend() all the time,
so there is no need to check the previous status.  Also, redundant return
variables are removed to reduce the code.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/ams369fg06.c