From: Guenter Roeck Date: Tue, 19 Jun 2012 05:37:13 +0000 (-0700) Subject: hwmon: (acpi_power_meter) Cleanup and optimizations X-Git-Tag: v3.6-rc1~120^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c4db3996ef0d27fb25e6991ebf6e507a920937;p=pandora-kernel.git 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 Acked-by: Jean Delvare --- Reading git-diff-tree failed