]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: s6e63m0: remove redundant variable 'before_power'
authorJingoo Han <jg1.han@samsung.com>
Fri, 22 Feb 2013 00:43:25 +0000 (16:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:22 +0000 (17:22 -0800)
commit128f373fd25e4844368ce83d8c5b5190574b3d08
tree0652a06f93b26c94f380c1413ca2fbccb01ee235
parentfe3f805a54a897c5217f6e49342093806fc4f5f3
backlight: s6e63m0: 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/s6e63m0.c