Skip to content

Commit 380e5c1

Browse files
johnhubbardtorvalds
authored andcommitted
selftests/vm/write_to_hugetlbfs.c: fix unused variable warning
Remove unused variable "i", which was triggering a compiler warning. Fixes: 29750f7 ("hugetlb_cgroup: add hugetlb_cgroup reservation tests") Signed-off-by: John Hubbard <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-By: Mina Almasry <[email protected]> Cc: Brian Geffon <[email protected]> Cc: "Kirill A . Shutemov" <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Ralph Campbell <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9809770 commit 380e5c1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/testing/selftests/vm/write_to_hugetlbfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ int main(int argc, char **argv)
7474
int write = 0;
7575
int reserve = 1;
7676

77-
unsigned long i;
78-
7977
if (signal(SIGINT, sig_handler) == SIG_ERR)
8078
err(1, "\ncan't catch SIGINT\n");
8179

0 commit comments

Comments
 (0)