Skip to content

Commit

Permalink
selftests/vm/write_to_hugetlbfs.c: fix unused variable warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
johnhubbard authored and torvalds committed May 23, 2020
1 parent 9809770 commit 380e5c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/testing/selftests/vm/write_to_hugetlbfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ int main(int argc, char **argv)
int write = 0;
int reserve = 1;

unsigned long i;

if (signal(SIGINT, sig_handler) == SIG_ERR)
err(1, "\ncan't catch SIGINT\n");

Expand Down

0 comments on commit 380e5c1

Please sign in to comment.