From: Ville Syrjälä Date: Wed, 12 Mar 2014 17:32:26 +0000 (+0200) Subject: drm/i915: Drop WARN_ON(flags) from ppgtt_bind_vma() X-Git-Tag: v3.15-rc1~51^2~18^2~46 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5139450c6a8b309e4e6f25a2a5bcaceddf19b47;p=karo-tx-linux.git drm/i915: Drop WARN_ON(flags) from ppgtt_bind_vma() We will call ppgtt_bind_vma() with flags != 0, so the WARN_ON(flags) is bogus. Kill it. Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 7727103d4918..0dce6fc9b1cc 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -1243,8 +1243,6 @@ ppgtt_bind_vma(struct i915_vma *vma, enum i915_cache_level cache_level, u32 flags) { - WARN_ON(flags); - vma->vm->insert_entries(vma->vm, vma->obj->pages, vma->node.start, cache_level); }