drm/i915: Drop a some common DRM_ERROR()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2009 11:34:08 +0000 (11:34 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 7 Dec 2009 20:18:28 +0000 (12:18 -0800)
These are handled by the error return being propagated to user-space and
do not any add any information to the original error, so are useless.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c

index 214fb18647100bf1917b1e299e37ec774e1fa1dd..fd53639950444991fac0d7a73241a1fb844a94f1 100644 (file)
@@ -3660,14 +3660,12 @@ i915_gem_execbuffer(struct drm_device *dev, void *data,
        i915_verify_inactive(dev, __FILE__, __LINE__);
 
        if (atomic_read(&dev_priv->mm.wedged)) {
-               DRM_ERROR("Execbuf while wedged\n");
                mutex_unlock(&dev->struct_mutex);
                ret = -EIO;
                goto pre_mutex_err;
        }
 
        if (dev_priv->mm.suspended) {
-               DRM_ERROR("Execbuf while VT-switched.\n");
                mutex_unlock(&dev->struct_mutex);
                ret = -EBUSY;
                goto pre_mutex_err;