commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/43: procfs: Remove superfluous calls.


From: Samuel Thibault
Subject: [hurd] 01/43: procfs: Remove superfluous calls.
Date: Mon, 11 Sep 2017 07:10:08 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit ce6764db1e045421fc9a199a334f63318d9f79d2
Author: Justus Winter <address@hidden>
Date:   Sat Jun 3 01:28:37 2017 +0200

    procfs: Remove superfluous calls.
    
    * procfs/rootdir.c (rootdir_gc_vmstat): Remove superfluous 'host_info'
    calls.
---
 procfs/rootdir.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 4f4a142..50923f5 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"

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]