diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-23 12:42:02 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-23 12:42:02 +0000 |
commit | 3850f4ad48986691e1fb98038ae921deb6c25423 (patch) | |
tree | e2fa0b9d3e153a243c36de261a84107f79a47fe6 | |
parent | d9ca113a83177562cde3537bf955164c6950cbd0 (diff) |
sna: Silence unsigned comparison against 0
The good news is if this ever failed, the kernel is far too broken...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 0ea9d39d..539c20e4 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -520,8 +520,8 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen) DBG(("%s: max object size %d\n", __FUNCTION__, kgem->max_object_size)); kgem->fence_max = gem_param(kgem, I915_PARAM_NUM_FENCES_AVAIL) - 2; - if (kgem->fence_max < 0) - kgem->fence_max = 5; + if ((int)kgem->fence_max < 0) + kgem->fence_max = 5; /* minimum safe value for all hw */ DBG(("%s: max fences=%d\n", __FUNCTION__, kgem->fence_max)); } |