summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-03-16 17:39:12 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-03-16 17:39:12 +0100
commit7a3b0f2226f7ad5f5ba20bcab5ef0f5c2b75e17d (patch)
treeb20ab65c3dc989da3a0718e48a37907d1be10086 /ifpps.c
parent714868559b381722637ac7bcad0c510e7f48dfe2 (diff)
ifpps: remove state from enum, since never used
We do not assign or use this particular state, so just remove it from the enum. We continue anyway in the while loop in that case. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ifpps.c b/ifpps.c
index d7a7c0e..f52a10b 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -241,8 +241,7 @@ static int stats_proc_softirqs(struct ifstat *stats)
enum {
softirqs_net_rx,
softirqs_net_tx,
- softirqs_net_none,
- } net_type = softirqs_net_none;
+ } net_type;
fp = fopen("/proc/softirqs", "r");
if (!fp)