diff options
author | Justus Winter <justus@gnupg.org> | 2017-06-03 01:28:37 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-06-03 16:16:20 +0200 |
commit | ce6764db1e045421fc9a199a334f63318d9f79d2 (patch) | |
tree | 426edf7dc7c59b4feafb023c3b0261ed67e0b798 /procfs | |
parent | cb991b0fd709a635b21c6ea2314acb5345b1b72c (diff) | |
download | hurd-ce6764db1e045421fc9a199a334f63318d9f79d2.tar.gz hurd-ce6764db1e045421fc9a199a334f63318d9f79d2.tar.bz2 hurd-ce6764db1e045421fc9a199a334f63318d9f79d2.zip |
procfs: Remove superfluous calls.
* procfs/rootdir.c (rootdir_gc_vmstat): Remove superfluous 'host_info'
calls.
Diffstat (limited to 'procfs')
-rw-r--r-- | procfs/rootdir.c | 8 |
1 files changed, 0 insertions, 8 deletions
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" |