]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/video/backlight/adp5520_bl.c: fix compiler warning in adp5520_show()
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 26 Mar 2013 23:25:01 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:27 +0000 (17:12 +1100)
commitcc915f244da1c474a3440d6b2a6684c2842b1a0f
treedca2d9d2c7f54b418f78b296725ee455482911c2
parent4ec0093ca72f500e88c5fc9bfca02163e4486e26
drivers/video/backlight/adp5520_bl.c: fix compiler warning in adp5520_show()

While compiling with make W=1 (gcc gcc (GCC) 4.7.2 20121109 (Red Hat
4.7.2-8)) found the following warning

drivers/video/backlight/adp5520_bl.c: In function `adp5520_show':
drivers/video/backlight/adp5520_bl.c:146:6: warning: variable `error' set but not used [-Wunused-but-set-variable]

fixed by checking the return value of the variable

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/adp5520_bl.c