]> 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>
Wed, 20 Mar 2013 04:07:43 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:23:00 +0000 (15:23 +1100)
commitf6607f00ee22d2f4d92c253eda1c2452e4a93868
tree6a0b5afe74f74d2ad9bf440ac92beb03aa1196aa
parentae64c429893dec5caf8eaf90b1d2459bf65e5945
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