From: Dan Carpenter Date: Sat, 17 Jul 2010 10:28:02 +0000 (+0200) Subject: drm: radeon: fix sign bug X-Git-Tag: v2.6.36-rc1~540^2~20^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=167ffc44caaee68ea60dadf6931a4d195a4ed1f0;p=pandora-kernel.git drm: radeon: fix sign bug The "error" variable is unsigned so it's never less than zero. I changed it to check if (freq < current_freq) directly. "best_error" is also unsigned so "best_error - 100" could be a large number instead of a negative. Since "error" is unsigned it is never less than a negative and so the cases where "best_error" is less than or equal to 100 are false. Signed-off-by: Dan Carpenter Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie --- Reading git-diff-tree failed