drm/i915: Simplify i915_gem_obj_ggtt_offset_view
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 21 Apr 2016 12:04:45 +0000 (13:04 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 25 Apr 2016 11:34:51 +0000 (12:34 +0100)
commit8aac2220cc949accfdaae6161242c95f072da5ac
treeef59bd152786bb9086e1181db0ca0fd65865d582
parent598b9ec8eff264f29fbfef811d3e69da1eb38503
drm/i915: Simplify i915_gem_obj_ggtt_offset_view

Can use the new vma->is_ggtt to simplify the check and
remove the local variables.

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