backlight: ams369fg06: remove redundant variable 'before_power'
authorJingoo Han <jg1.han@samsung.com>
Fri, 22 Feb 2013 00:43:30 +0000 (16:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/ams369fg06.c