mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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: cc18da79d9 ("hwmon: (it87) Support up to 6 temperature sensors ... ");
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
29b4817d40
commit
aa8b187eea
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ struct it87_sio_data {
|
|||
struct it87_data {
|
||||
const struct attribute_group *groups[7];
|
||||
enum chips type;
|
||||
u16 features;
|
||||
u32 features;
|
||||
u8 peci_mask;
|
||||
u8 old_peci_mask;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue