[Olsr-dev] [PATCH 03/12] tc_set: remove unused variable

Ferry Huberts (spam-protected)
Thu Jun 9 13:42:49 CEST 2011


From: Ferry Huberts <(spam-protected)>

src/tc_set.c:421:17: warning: variable ‘old’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/tc_set.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/tc_set.c b/src/tc_set.c
index 6a32723..ff415d8 100644
--- a/src/tc_set.c
+++ b/src/tc_set.c
@@ -418,8 +418,6 @@ olsr_expire_tc_edge_gc(void *context)
 bool
 olsr_calc_tc_edge_entry_etx(struct tc_edge_entry *tc_edge)
 {
-  olsr_linkcost old;
-
   /*
    * Some sanity check before recalculating the etx.
    */
@@ -427,7 +425,6 @@ olsr_calc_tc_edge_entry_etx(struct tc_edge_entry *tc_edge)
     return false;
   }
 
-  old = tc_edge->cost;
   tc_edge->cost = olsr_calc_tc_cost(tc_edge);
   return true;
 }
-- 
1.7.5.2





More information about the Olsr-dev mailing list