diff options
author | kn <kn@cvs.openbsd.org> | 2020-06-26 20:55:56 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-06-26 20:55:56 +0000 |
commit | 82097623ee840699ae69a560ab7fd2fc6306bf7b (patch) | |
tree | 2ad764e7ed80f7b6529e9e96082fa6badd30a157 /usr.bin/top/machine.c | |
parent | c9da40319ade2fae5d8060ae1358116aed97dfe9 (diff) |
Remove duplicate initialisation
Those are global variables are (zero) initialised as such already and
machine_init() is called only once upon startup.
OK mvs
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 177cc9223b3..13c0ae6e817 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.105 2020/06/25 20:38:41 kn Exp $ */ +/* $OpenBSD: machine.c,v 1.106 2020/06/26 20:55:55 kn Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com> @@ -203,11 +203,6 @@ machine_init(struct statics *statics) if (cpu_online == NULL) err(1, NULL); - pbase = NULL; - pref = NULL; - onproc = -1; - nproc = 0; - /* * get the page size with "getpagesize" and calculate pageshift from * it |