[LTP] [PATCH] max_map_count: Delete dead code

Zhao Gongyi zhaogongyi@huawei.com
Mon Nov 29 04:57:37 CET 2021


When we run the testcase on AARCH64, there are no TST_ARM defined.

Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
 testcases/kernel/mem/tunable/max_map_count.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/testcases/kernel/mem/tunable/max_map_count.c b/testcases/kernel/mem/tunable/max_map_count.c
index a4c3dbf8e..bfbd8b1c7 100644
--- a/testcases/kernel/mem/tunable/max_map_count.c
+++ b/testcases/kernel/mem/tunable/max_map_count.c
@@ -100,10 +100,6 @@ static bool filter_map(const char *line)
 			return true;
 		break;
 	case TST_ARM:
-		/* Skip it when run it in aarch64 */
-		if (tst_kernel_bits() == 64)
-			return false;
-
 		/* Older arm kernels didn't label their vdso maps */
 		if (!strncmp(line, "ffff0000-ffff1000", 17))
 			return true;
--
2.17.1



More information about the ltp mailing list