From ce6764db1e045421fc9a199a334f63318d9f79d2 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sat, 3 Jun 2017 01:28:37 +0200 Subject: procfs: Remove superfluous calls. * procfs/rootdir.c (rootdir_gc_vmstat): Remove superfluous 'host_info' calls. --- procfs/rootdir.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'procfs/rootdir.c') diff --git a/procfs/rootdir.c b/procfs/rootdir.c index 4f4a1426..50923f57 100644 --- a/procfs/rootdir.c +++ b/procfs/rootdir.c @@ -339,8 +339,6 @@ rootdir_gc_meminfo (void *hook, char **contents, ssize_t *contents_len) static error_t rootdir_gc_vmstat (void *hook, char **contents, ssize_t *contents_len) { - host_basic_info_data_t hbi; - mach_msg_type_number_t cnt; struct vm_statistics vmstats; error_t err; @@ -348,12 +346,6 @@ rootdir_gc_vmstat (void *hook, char **contents, ssize_t *contents_len) if (err) return EIO; - cnt = HOST_BASIC_INFO_COUNT; - err = host_info (mach_host_self (), HOST_BASIC_INFO, (host_info_t) &hbi, &cnt); - if (err) - return err; - - assert (cnt == HOST_BASIC_INFO_COUNT); *contents_len = asprintf (contents, "nr_free_pages %lu\n" "nr_inactive_anon %lu\n" -- cgit v1.2.3