aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric B Munson <emunson@mgebm.net>2010-12-15 10:55:25 -0700
committerEric B Munson <emunson@mgebm.net>2010-12-16 10:20:20 -0700
commita72bf01c8cd68c691ec1c62f11a3e252d61e4be8 (patch)
tree2bd649bbe7bb547f103ae85f2e481ad1afafaea5
parentb0d496fc01ad37a53b47fa6fd45ca446621513fd (diff)
downloadlibhugetlbfs-a72bf01c8cd68c691ec1c62f11a3e252d61e4be8.tar.gz
Remove unused global zero_fd
Now that hugetlbfs_prefault no longer takes an fd argument, there is no reason to keep the global zero_fd around. Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rw-r--r--morecore.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/morecore.c b/morecore.c
index 99fbaee..6b4364c 100644
--- a/morecore.c
+++ b/morecore.c
@@ -34,7 +34,6 @@
#include "libhugetlbfs_internal.h"
static int heap_fd;
-static int zero_fd;
static void *heapbase;
static void *heaptop;
@@ -265,7 +264,6 @@ void hugetlbfs_setup_morecore(void)
heapaddr = (unsigned long)sbrk(0);
heapaddr = hugetlbfs_next_addr(heapaddr);
}
- zero_fd = open("/dev/zero", O_RDONLY);
INFO("setup_morecore(): heapaddr = 0x%lx\n", heapaddr);