]> 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>
Fri, 22 Mar 2013 04:33:23 +0000 (15:33 +1100)
commit8b06cd78841a6893335713ed78b268a7fa00a8f7
treee9197b9efa2c85165ecde5cf31eab0a8aaa4b17d
parent074cef53a04f13424fe51b3570d148597b8e1de4
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