]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Drop WARN_ON(flags) from ppgtt_bind_vma()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Mar 2014 17:32:26 +0000 (19:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Mar 2014 11:22:19 +0000 (12:22 +0100)
We will call ppgtt_bind_vma() with flags != 0, so the WARN_ON(flags)
is bogus. Kill it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index 7727103d4918d6d20ee6c2c1584c0d7805ee3cac..0dce6fc9b1cc9d8ba9b573c353cc4da4c04e9201 100644 (file)
@@ -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);
 }