Skip to content

Commit 123f5d5

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
iov_iter: remove setting of page->index
Nothing actually checks page->index, so just remove it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e7606f4 commit 123f5d5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/kunit_iov_iter.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ static void *__init iov_kunit_create_buffer(struct kunit *test,
6363
KUNIT_ASSERT_EQ(test, got, npages);
6464
}
6565

66-
for (int i = 0; i < npages; i++)
67-
pages[i]->index = i;
68-
6966
buffer = vmap(pages, npages, VM_MAP | VM_MAP_PUT_PAGES, PAGE_KERNEL);
7067
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buffer);
7168

0 commit comments

Comments
 (0)