drm/i915: Tidy i915_gem_valid_gtt_space()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 14:29:38 +0000 (14:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 20:49:17 +0000 (20:49 +0000)
commit7d1d9aea3ee0e3aa285431c0fcfb05be8f6ec5f4
tree6e17d90b7d96b37d217bfa44baeff72a1708cc64
parent172ae5b4c8c104af56804bf2406014849ed6fa37
drm/i915: Tidy i915_gem_valid_gtt_space()

We can replace a couple of tests with an assertion that the passed in
node is already allocated (as matches the existing call convention) and
by a small bit of refactoring we can bring the line lengths to under
80cols.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161205142941.21965-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c