drm/i915: BUG_ON when ggtt_view is NULL
authorMatthew Auld <matthew.auld@intel.com>
Thu, 24 Mar 2016 15:54:20 +0000 (15:54 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 30 Mar 2016 10:47:18 +0000 (13:47 +0300)
commitade7daa164709e5851836195c6cd7502cea1eb5e
tree45f542f2882f56dbf89fd63c89121947831fa45d
parent9f54d4bd5808b5c892a44c539c126b71d299f341
drm/i915: BUG_ON when ggtt_view is NULL

Lets BUG_ON and don't bother with a WARN and returning an error, so we can
remove the need to pollute the code with error handling, after all it is
a programmer error to provide NULL view. Also while we're here remove
redundant NULL ggtt_view check.

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458834860-7898-1-git-send-email-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_gtt.c