drm/i915: Convert BUG_ON(pin_count) from an impossible condition
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Oct 2010 09:41:23 +0000 (10:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Oct 2010 09:54:29 +0000 (10:54 +0100)
commit7465378fd7c681f6cf2b74b3494c4f0991d8c8ac
treefb6266fb46cf3407792b361add7df31cb13588b5
parentbbe2e11a4b683ead070ad5823cdf756e1525b903
drm/i915: Convert BUG_ON(pin_count) from an impossible condition

Also spotted by Dan Carpenter.

obj->pin_count is unsigned so the BUG_ON(obj->pin_count<0) will never
trigger.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c