Skip to contentSkip to conversation

selftests/memfd: remove unused variable

PATCH Applied Greg Thelen 1 participant 1 message Jul 2, 2021 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal")
---
 tools/testing/selftests/memfd/memfd_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/memfd/memfd_test.c +1 -1
index 74baab83fec3..192a2899bae8 100644
@@ -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);
Signature · 1 line
2.32.0.93.g670b81a890-goog