summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-07-17 12:28:02 +0200
committerDave Airlie <airlied@redhat.com>2010-08-02 02:00:10 +0200
commit167ffc44caaee68ea60dadf6931a4d195a4ed1f0 (patch)
tree26f3450e0e7ebe2efa524c52bef6c002688190c8 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentdrm/radeon/kms: check/restore sanity before doing anything else with GPU. (diff)
downloadlinux-167ffc44caaee68ea60dadf6931a4d195a4ed1f0.tar.xz
linux-167ffc44caaee68ea60dadf6931a4d195a4ed1f0.zip
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 <error27@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
0 files changed, 0 insertions, 0 deletions