diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-12-07 17:24:10 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-12-11 18:42:27 +0300 |
commit | e1d15969635ca61aa12091a53dc5d148e5621782 (patch) | |
tree | f312d35b1e3e7836071ad32f41d4b15a28af043a /Documentation/devicetree | |
parent | 966ead9153c25ee08d14a494585df4439b210474 (diff) | |
download | linux-e1d15969635ca61aa12091a53dc5d148e5621782.tar.xz |
hwmon: (ltc2992) Fix less than zero comparisons with an unsigned integer
There are several occurrances of a less than zero error check on
a u32 unsigned integer. These will never be true. Fix this by making
reg_value a plain int.
Addresses-Coverity: ("Unsigned comparison against zero")
Fixes: e126370240e0 ("hwmon: (ltc2992) Add support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201207142410.168987-1-colin.king@canonical.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions