Skip to content

Commit 4e3b45d

Browse files
amd-sukhatrialexdeucher
authored andcommitted
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: 899fbde ("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>
1 parent 883bd89 commit 4e3b45d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,
884884
amdgpu_bo_list_for_each_userptr_entry(e, p->bo_list) {
885885
bool userpage_invalidated = false;
886886
struct amdgpu_bo *bo = e->bo;
887-
int i;
888887

889888
r = amdgpu_ttm_tt_get_user_pages(bo, &e->range);
890889
if (r)

0 commit comments

Comments
 (0)