From cd812a4e89db0150bfcff6d91ffffea37dc106c9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 26 Apr 2015 11:18:28 +0100 Subject: [PATCH] igt/gem_pwrite: Delete unused mmap(wc) for the big CPU test Signed-off-by: Chris Wilson --- tests/gem_pwrite.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c index 17d699e1..4c223581 100644 --- a/tests/gem_pwrite.c +++ b/tests/gem_pwrite.c @@ -84,7 +84,6 @@ static const char *bytes_per_sec(char *buf, double v) static void test_big_cpu(int fd, int scale) { uint64_t offset, size; - uint32_t *ptr; uint32_t handle; size = scale * gem_aperture_size(fd) >> 2; @@ -95,7 +94,6 @@ static void test_big_cpu(int fd, int scale) handle = gem_create(fd, size); gem_set_domain(fd, handle, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); - ptr = gem_mmap__wc(fd, handle, 0, size, PROT_READ); for (offset = 0; offset < size; offset += 4096) { int suboffset = (offset >> 12) % (4096 - sizeof(offset)); uint64_t tmp; @@ -105,7 +103,6 @@ static void test_big_cpu(int fd, int scale) igt_assert_eq(offset, tmp); } - munmap(ptr, size); gem_close(fd, handle); }