diff options
author | Christian König <christian.koenig@amd.com> | 2015-11-06 14:09:21 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-11-16 11:05:58 -0500 |
commit | 4a562283376197722b295d27633134401bbc80f5 (patch) | |
tree | eacbac9e5ddcfb7ab9b8d4bc4dbafc1df2dd0444 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
parent | 7034decf6a5b1ff778d83ff9d7ce1f0b404804e4 (diff) | |
download | talos-obmc-linux-4a562283376197722b295d27633134401bbc80f5.tar.gz talos-obmc-linux-4a562283376197722b295d27633134401bbc80f5.zip |
drm/amdgpu: cleanup scheduler fence get/put dance
The code was correct, but getting two references when the ownership
is linearly moved on is a bit awkward and just overhead.
Signed: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c index 67f778f6eedb..8ef9e4415fcc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c @@ -64,7 +64,6 @@ err: job->free_job(job); mutex_unlock(&job->job_lock); - fence_put(&job->base.s_fence->base); kfree(job); return fence ? &fence->base : NULL; } |