]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Features mask must be 32 bit wide
authorGuenter Roeck <linux@roeck-us.net>
Wed, 10 Aug 2016 05:09:19 +0000 (22:09 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 12 Aug 2016 01:35:47 +0000 (18:35 -0700)
commit9f5bae4095594afed06c68a8151b50c439daaf3e
treec4a094a0388e5823373c40cf78b582b3fbd5ef7f
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
hwmon: (it87) Features mask must be 32 bit wide

Coverity reports:

result_independent_of_operands: data->features & (65536UL /* 1UL << 16 */)
is always 0 regardless of the values of its operands. This occurs as the
logical operand of if.

data->features needs to be 32 bit wide since there are more than 16 features.

Fixes: 9ef6cd929363 ("hwmon: (it87) Support up to 6 temperature sensors ... ");
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c