]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests/vm/write_to_hugetlbfs.c: fix unused variable warning
authorJohn Hubbard <jhubbard@nvidia.com>
Sat, 23 May 2020 05:22:56 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 May 2020 17:26:31 +0000 (10:26 -0700)
Remove unused variable "i", which was triggering a compiler warning.

Fixes: 9def9cad29d9 ("hugetlb_cgroup: add hugetlb_cgroup reservation tests")
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-By: Mina Almasry <almasrymina@google.com>
Cc: Brian Geffon <bgeffon@google.com>
Cc: "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Link: http://lkml.kernel.org/r/20200517001245.361762-2-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/write_to_hugetlbfs.c

index 110bc4e4015d675e1a4f2204b1bdfad9fa099b51..6a2caba19ee1d9d8924f3df1d2d5e112f36d3be4 100644 (file)
@@ -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");