]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a4040bf9f226403d8a70898e58966447be43d2d
tree69bdd093ae07e27cbe673981322a8fe250598b35
parentfa8c87891089d5ffb06e3e87f91e21ac57e1ba4f
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