Skip to content

Commit

Permalink
selftests/memfd: remove unused variable
Browse files Browse the repository at this point in the history
Commit 5440298 ("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: 5440298 ("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: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Greg Thelen authored and Stephen Rothwell committed Aug 25, 2021
1 parent 74a9015 commit eedfced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/memfd/memfd_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eedfced

Please sign in to comment.