]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: ams369fg06: remove redundant variable 'before_power'
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:20 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:11 +0000 (16:53 +1100)
commit87963bc1bf745aa0e163ec36a6d2a4f5b025b79d
tree1405f3ed84ec3bb4c5bdc6f21bb8181a7c9db2c4
parente24c069b3f18f38920975859c39b5315cca8dd4d
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