summaryrefslogtreecommitdiff
path: root/tests/pagingtest/mmap_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pagingtest/mmap_test.c')
-rw-r--r--tests/pagingtest/mmap_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/pagingtest/mmap_test.c b/tests/pagingtest/mmap_test.c
index d0d9846a..93859880 100644
--- a/tests/pagingtest/mmap_test.c
+++ b/tests/pagingtest/mmap_test.c
@@ -10,7 +10,6 @@
int mmap_test(int test_runs, unsigned long long alloc_size) {
void *buf;
int ret = -1;
- int rc;
int i;
struct timeval begin_time, end_time, elapsed_time;
struct timeval total_time_mmap, total_time_munmap, total_time_in, total_time_out;
@@ -43,8 +42,8 @@ int mmap_test(int test_runs, unsigned long long alloc_size) {
ret = 0;
goto end;
-err:
- munmap(buf, alloc_size);
+// err:
+ munmap(buf, alloc_size); // unreached?
end:
err_map:
return ret;