Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: remove useless init from amdgpu_job_alloc

This init is useless because base.sched will be cleared to 0 in drm_sched_job_init
because of commit 2320c9e6a768 ("drm/sched: memset() 'job' in drm_sched_job_init()").

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Pierre-Eric Pelloux-Prayer and committed by
Alex Deucher
54a1b36d 0014952b

-5
-5
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
··· 197 197 if (!*job) 198 198 return -ENOMEM; 199 199 200 - /* 201 - * Initialize the scheduler to at least some ring so that we always 202 - * have a pointer to adev. 203 - */ 204 - (*job)->base.sched = &adev->rings[0]->sched; 205 200 (*job)->vm = vm; 206 201 207 202 amdgpu_sync_create(&(*job)->explicit_sync);