backlight: ams369fg06: remove redundant variable 'before_power'
authorJingoo Han <[email protected]>
Fri, 22 Feb 2013 00:43:30 +0000 (16:43 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:22 +0000 (17:22 -0800)
commitc9023492b49b2a9506ae2f054167da02c71ef2b6
tree69bdd093ae07e27cbe673981322a8fe250598b35
parent1d7976b24d11f1ba971b95382735b300be80f3df
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/ams369fg06.c