summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/mdwe_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/mm/mdwe_test.c')
-rw-r--r--tools/testing/selftests/mm/mdwe_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/mm/mdwe_test.c b/tools/testing/selftests/mm/mdwe_test.c
index f466a099f1bf..bc91bef5d254 100644
--- a/tools/testing/selftests/mm/mdwe_test.c
+++ b/tools/testing/selftests/mm/mdwe_test.c
@@ -163,9 +163,8 @@ TEST_F(mdwe, mprotect_WRITE_EXEC)
TEST_F(mdwe, mmap_FIXED)
{
- void *p, *p2;
+ void *p;
- p2 = mmap(NULL, self->size, PROT_READ | PROT_EXEC, self->flags, 0, 0);
self->p = mmap(NULL, self->size, PROT_READ, self->flags, 0, 0);
ASSERT_NE(self->p, MAP_FAILED);