From 760f5b49a49c4b244a2da06a4123f884d891f8f6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 11 Jul 2013 09:49:11 +0200 Subject: [PATCH] ifpps: Remove unnecessary memset() stats_avg will be reset to 0 on the first call to stats_top() before displaying any results, thus this memset() is not necessary. Signed-off-by: Tobias Klauser --- ifpps.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ifpps.c b/ifpps.c index 5328b031..6e7f4030 100644 --- a/ifpps.c +++ b/ifpps.c @@ -1238,7 +1238,6 @@ int main(int argc, char **argv) stats_alloc(&stats_delta, cpus); cpu_hits = xzmalloc(cpus * sizeof(*cpu_hits)); - memset(&stats_avg, 0, sizeof(stats_avg)); if (promisc) ifflags = enter_promiscuous_mode(ifname); -- 2.11.4.GIT