diff options
author | Christian König <christian.koenig@amd.com> | 2018-08-03 14:07:36 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 19:10:06 +0300 |
commit | 93f15e1c0796f102a62fdc4931e4c5f847c98a12 (patch) | |
tree | 054ea9ab9870a177759f15760248f74ee790e311 /drivers/gpu/drm/scheduler | |
parent | c2d358d724ee5ba8bda49a384ac3ae5ab125134c (diff) | |
download | linux-93f15e1c0796f102a62fdc4931e4c5f847c98a12.tar.xz |
drm/scheduler: Remove entity->rq NULL check
That is superflous now.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/scheduler')
-rw-r--r-- | drivers/gpu/drm/scheduler/gpu_scheduler.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c index da2da8d85035..6be554499be9 100644 --- a/drivers/gpu/drm/scheduler/gpu_scheduler.c +++ b/drivers/gpu/drm/scheduler/gpu_scheduler.c @@ -591,11 +591,6 @@ void drm_sched_entity_push_job(struct drm_sched_job *sched_job, if (first) { /* Add the entity to the run queue */ spin_lock(&entity->rq_lock); - if (!entity->rq) { - DRM_ERROR("Trying to push to a killed entity\n"); - spin_unlock(&entity->rq_lock); - return; - } drm_sched_rq_add_entity(entity->rq, entity); spin_unlock(&entity->rq_lock); drm_sched_wakeup(entity->rq->sched); |