]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) Silent false warning from gcc
authorJean Delvare <khali@linux-fr.org>
Wed, 12 Jan 2011 20:55:09 +0000 (21:55 +0100)
committerJean Delvare <khali@endymion.delvare>
Wed, 12 Jan 2011 20:55:09 +0000 (21:55 +0100)
commitddae31272e02dd37b2581c97ba0eedc33fb3b599
treee193fea269d089bc05953d3c3ae79f49ffe31b4c
parent79aede3421a39cb69bcf1c5431678ff8f1886eaf
hwmon: (w83795) Silent false warning from gcc

The code triggers a false warning with older versions of gcc:
w83795.c: In function 'w83795_update_device':
w83795.c:475: warning: 'lsb' may be used uninitialized in this function

I admit that the code is a little tricky, but I see no way to write it
differently without hurting performance. So let's just silent the
warning with a needless initialization.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83795.c