mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Julia Lawall <julia@diku.dk> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
fede5c91c4
commit
aad87dff5a
1 changed files with 5 additions and 6 deletions
|
@ -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 < pinned; i++)
|
||||
i915_gem_object_unpin(object_list[i]);
|
||||
|
||||
for (i = 0; i < args->buffer_count; i++)
|
||||
drm_gem_object_unreference(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:
|
||||
|
|
Loading…
Reference in a new issue