Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aad87dff authored by Julia Lawall's avatar Julia Lawall Committed by Dave Airlie
Browse files

drm/i915: Remove redundant test in error path.



The error path for object list being null is in the second goto target.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent fede5c91
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -2613,13 +2613,12 @@ i915_gem_execbuffer(struct drm_device *dev, void *data,
			  "back to user (%d)\n",
			   args->buffer_count, ret);
err:
	if (object_list != NULL) {
	for (i = 0; i < pinned; i++)
		i915_gem_object_unpin(object_list[i]);

	for (i = 0; i < args->buffer_count; i++)
		drm_gem_object_unreference(object_list[i]);
	}

	mutex_unlock(&dev->struct_mutex);

pre_mutex_err: