drm/i915: Remove "Attempting to unbind pinned buffer" message

This error message is removed in later versions of Linux and currently,
it spams users.

PR:		200712
MFC of:		r289109
This commit is contained in:
dumbbell 2016-01-13 21:56:48 +00:00
parent 7be34d59a5
commit 2ed939d896

View File

@ -2771,10 +2771,8 @@ i915_gem_object_unbind(struct drm_i915_gem_object *obj)
ret = 0;
if (obj->gtt_space == NULL)
return (0);
if (obj->pin_count != 0) {
DRM_ERROR("Attempting to unbind pinned buffer\n");
if (obj->pin_count != 0)
return (-EINVAL);
}
ret = i915_gem_object_finish_gpu(obj);
if (ret == -ERESTARTSYS || ret == -EINTR)