summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2021-09-08 05:00:50 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-08 20:50:28 +0200
commitd42990f486b56ce4381edd42a47119c073b131d5 (patch)
tree9c314dab1c3b04d67c0990f4423e053ffe2b1565 /tools
parentKconfig.debug: drop selecting non-existing HARDLOCKUP_DETECTOR_ARCH (diff)
downloadlinux-d42990f486b56ce4381edd42a47119c073b131d5.tar.xz
linux-d42990f486b56ce4381edd42a47119c073b131d5.zip
selftests/memfd: remove unused variable
Commit 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal") added an unused variable to mfd_assert_reopen_fd(). Delete the unused variable. Link: https://lkml.kernel.org/r/20210702045509.1517643-1-gthelen@google.com Fixes: 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal") Signed-off-by: Greg Thelen <gthelen@google.com> Cc: Shuah Khan <shuah@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/memfd/memfd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
index 74baab83fec3..192a2899bae8 100644
--- a/tools/testing/selftests/memfd/memfd_test.c
+++ b/tools/testing/selftests/memfd/memfd_test.c
@@ -56,7 +56,7 @@ static int mfd_assert_new(const char *name, loff_t sz, unsigned int flags)
static int mfd_assert_reopen_fd(int fd_in)
{
- int r, fd;
+ int fd;
char path[100];
sprintf(path, "/proc/self/fd/%d", fd_in);