From 998669224df5ace6ba87c5b6f466c679beca1d2b Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:21:45 +0200 Subject: [PATCH] interface plugin: val is only used once --- src/interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index d05dd723..bc2121bd 100644 --- a/src/interface.c +++ b/src/interface.c @@ -135,7 +135,6 @@ static int interface_config (const char *key, const char *value) static int interface_init (void) { kstat_t *ksp_chain; - derive_t val; numif = 0; @@ -152,7 +151,7 @@ static int interface_init (void) continue; if (kstat_read (kc, ksp_chain, NULL) == -1) continue; - if ((val = get_kstat_value (ksp_chain, "obytes")) == -1LL) + if (get_kstat_value (ksp_chain, "obytes") == -1LL) continue; ksp[numif++] = ksp_chain; } -- 2.30.2