drm/i915: Simplify i915_gem_obj_to_ggtt_view
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 21 Apr 2016 12:04:44 +0000 (13:04 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 25 Apr 2016 11:34:34 +0000 (12:34 +0100)
commit598b9ec8eff264f29fbfef811d3e69da1eb38503
treecdad47284618556a7e8cea9a61f039947ca32c91
parent8da32727ac0e5a1b440c5f011d501bd64164d9ec
drm/i915: Simplify i915_gem_obj_to_ggtt_view

Can use vma->is_ggtt to simplify the check and also switch the
BUG_ON to GEM_BUG_ON which is more appropriate for this.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
drivers/gpu/drm/i915/i915_gem.c