From: Pierre-Eric Pelloux-Prayer Date: Fri, 6 Dec 2024 13:02:47 +0000 (+0100) Subject: drm/amdgpu: remove useless init from amdgpu_job_alloc X-Git-Tag: v6.14-rc1~174^2~14^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54a1b36d4bd93c3dcfdeacf136ef7cd6387553b2;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Alex Deucher Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index 77d3ca857cb9b..2e7e1c7dfe7c8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c @@ -197,11 +197,6 @@ int amdgpu_job_alloc(struct amdgpu_device *adev, struct amdgpu_vm *vm, if (!*job) return -ENOMEM; - /* - * Initialize the scheduler to at least some ring so that we always - * have a pointer to adev. - */ - (*job)->base.sched = &adev->rings[0]->sched; (*job)->vm = vm; amdgpu_sync_create(&(*job)->explicit_sync);