diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-12-04 02:27:56 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-01-03 02:05:34 +0300 |
commit | 571e3f3a8e6582ecce2c7fd5d0a9e2ae74cece02 (patch) | |
tree | 1e9fa4097eb343ac524f4e2ddc35ec5288f9ef91 /Documentation/hwmon/ltc2945 | |
parent | a7a9b15a35d2504aa83e140d4cf50c85ac01e965 (diff) | |
download | linux-571e3f3a8e6582ecce2c7fd5d0a9e2ae74cece02.tar.xz |
hwmon: (w83773g) Fix fault detection and reporting
Smatch reports:
drivers/hwmon/w83773g.c:105
get_fault() warn: shift has higher precedence than mask
Code analysis shows that the code is indeed wrong.
Fix it, and while we are at it, drop unnecessary typecast.
Fixes: 86a10c802362 ("hwmon: Add W83773G driver")
Cc: Lei YU <mine260309@gmail.com>
Reviewed-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/ltc2945')
0 files changed, 0 insertions, 0 deletions