diff options
| author | Sunil Khatri <sunil.khatri@amd.com> | 2025-09-24 15:33:07 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-25 22:46:35 +0300 |
| commit | 4e3b45d7b6c36d7d1b9a30b13d2dfa890e7a0763 (patch) | |
| tree | b346305dfa86cb82fec5f9bea75efbff139ec3bb /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | 883bd89d00085c2c5f1efcd25861745cb039f9e3 (diff) | |
| download | linux-4e3b45d7b6c36d7d1b9a30b13d2dfa890e7a0763.tar.xz | |
drm/amdgpu: remove the redeclaration of variable i
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 744e6ff69814..9cd7741d2254 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -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) |
