]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: remove useless init from amdgpu_job_alloc
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 6 Dec 2024 13:02:47 +0000 (14:02 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2024 17:17:46 +0000 (12:17 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

index 77d3ca857cb9b4e5976259d3f6c51a7cc575e0e9..2e7e1c7dfe7c8affb3a1e9cab56acff8f8003ae7 100644 (file)
@@ -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);