From: Guenter Roeck Date: Wed, 19 Sep 2012 18:27:03 +0000 (-0700) Subject: hwmon: (w83791d) Drop unnecessary compare statements X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~72^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91698135bef4e945b0eee1b676d6ea5085177dc;p=pandora-kernel.git hwmon: (w83791d) Drop unnecessary compare statements The following build warnings are seen with -Wextra. w83791d.c: In function store_temp_target: w83791d.c:858:2: warning: comparison of unsigned expression < 0 is always false w83791d.c: In function store_temp_tolerance: w83791d.c:920:2: warning: comparison of unsigned expression < 0 is always false For store_temp_target, accept negative numbers and clamp to >= 0. For store_temp_tolerance, drop the unnecessary comparison. Signed-off-by: Guenter Roeck Acked-by: Jean Delvare --- Reading git-diff-tree failed