drm/amdgpu: fix null pointer by previous cleanup

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian K?nig <christian.koenig@amd.com>
This commit is contained in:
Chunming Zhou 2015-08-03 20:02:43 +08:00 committed by Alex Deucher
parent 1763552ee8
commit 03d3a3e634
1 changed files with 0 additions and 4 deletions

View File

@ -79,7 +79,6 @@ static void amdgpu_sched_process_job(struct amd_gpu_scheduler *sched, void *job)
struct amdgpu_fence *fence = NULL;
struct amdgpu_ring *ring = NULL;
struct amdgpu_device *adev = NULL;
struct amd_context_entity *c_entity = NULL;
if (!job)
return;
@ -90,9 +89,6 @@ static void amdgpu_sched_process_job(struct amd_gpu_scheduler *sched, void *job)
ring = fence->ring;
adev = ring->adev;
/* wake up users waiting for time stamp */
wake_up_all(&c_entity->wait_queue);
schedule_work(&sched_job->job_work);
}