diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-01 11:27:06 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-01 11:27:06 +0100 |
commit | 16a4f265e456fc159ce147266224163d12516d3c (patch) | |
tree | 3ee0606d16fcb6e587cba1541f19ac98be179c57 /src/basic/procfs-util.c | |
parent | Merge pull request #8149 from poettering/fake-root-cgroup (diff) | |
download | systemd-16a4f265e456fc159ce147266224163d12516d3c.tar.xz systemd-16a4f265e456fc159ce147266224163d12516d3c.zip |
procfs-util: drop unnecessary zero initializations (#8321)
Follow-up for #8149.
Diffstat (limited to 'src/basic/procfs-util.c')
-rw-r--r-- | src/basic/procfs-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c index 6c2cfd2918..a159e344b3 100644 --- a/src/basic/procfs-util.c +++ b/src/basic/procfs-util.c @@ -155,8 +155,7 @@ static uint64_t calc_gcd64(uint64_t a, uint64_t b) { int procfs_cpu_get_usage(nsec_t *ret) { _cleanup_free_ char *first_line = NULL; - unsigned long user_ticks = 0, nice_ticks = 0, system_ticks = 0, - irq_ticks = 0, softirq_ticks = 0, + unsigned long user_ticks, nice_ticks, system_ticks, irq_ticks, softirq_ticks, guest_ticks = 0, guest_nice_ticks = 0; long ticks_per_second; uint64_t sum, gcd, a, b; |