backlight: ld9040: remove unnecessary NULL deference check
authorJingoo Han <jg1.han@samsung.com>
Fri, 22 Feb 2013 00:43:16 +0000 (16:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:21 +0000 (17:22 -0800)
commite2ffe8563a528a302abfbb7ed655fc1a3b79128f
tree7caca40b1053920606a0867a52f42488e9df8ba8
parentd2fff29042877154c3bc051a147bc7964a2e5fe2
backlight: ld9040: remove unnecessary NULL deference check

Removee unnecessary NULL deference check, because it was already checked
in ld9040_probe().  Also, power_is_on is replaced with
ld9040_power_is_on().

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/ld9040.c