]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: remove the redeclaration of variable i
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 24 Sep 2025 12:33:07 +0000 (18:03 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Sep 2025 19:46:35 +0000 (15:46 -0400)
Variable "i" has been redeclared as integer later in the function
which is wrong and not serving any purpose.

Fixes: 899fbde14646 ("drm/amdgpu: replace get_user_pages with HMM mirror helpers")
Signed-off-by: Sunil Khatri <sunil.khatri@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_cs.c

index 744e6ff698146be9036b5c7d9ed058dbb958e5b7..9cd7741d22545f26f48fce5739970727c7bb352a 100644 (file)
@@ -884,7 +884,6 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,
        amdgpu_bo_list_for_each_userptr_entry(e, p->bo_list) {
                bool userpage_invalidated = false;
                struct amdgpu_bo *bo = e->bo;
-               int i;
 
                r = amdgpu_ttm_tt_get_user_pages(bo, &e->range);
                if (r)