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 after:	1 week
This commit is contained in:
dumbbell 2015-10-10 07:43:02 +00:00
parent 90402024b4
commit e86ec3183d

View File

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