diff options
| author | 2012-06-18 22:37:13 -0700 | |
|---|---|---|
| committer | 2012-07-21 21:48:44 -0700 | |
| commit | 27c4db3996ef0d27fb25e6991ebf6e507a920937 (patch) | |
| tree | bac3effb30b62185d86cb1f36a98eec7204a17f6 /tools/perf/util/trace-event-scripting.c | |
| parent | hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature sensor driver (diff) | |
| download | wireguard-linux-27c4db3996ef0d27fb25e6991ebf6e507a920937.tar.xz wireguard-linux-27c4db3996ef0d27fb25e6991ebf6e507a920937.zip | |
hwmon: (acpi_power_meter) Cleanup and optimizations
An unsigned value can not be smaller than 0. Remove the check for it.
Use DIV_ROUND_CLOSEST for divide operations converting milli-degrees C into
degrees C. Limit maximum accepted trip point temperature to INT_MAX.
This patch fixes Coverity #115214: Unsigned compared against 0
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
