neighbor_table: remove unused variable
authorFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 08:15:04 +0000 (10:15 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Thu, 9 Jun 2011 14:35:52 +0000 (16:35 +0200)
src/neighbor_table.c:73:26: warning: variable ‘nbr’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
src/neighbor_table.c

index 2ae9a49..7e3126e 100644 (file)
@@ -70,10 +70,8 @@ olsr_init_neighbor_table(void)
 static void
 olsr_del_nbr2_list(struct neighbor_2_list_entry *nbr2_list)
 {
 static void
 olsr_del_nbr2_list(struct neighbor_2_list_entry *nbr2_list)
 {
-  struct neighbor_entry *nbr;
   struct neighbor_2_entry *nbr2;
 
   struct neighbor_2_entry *nbr2;
 
-  nbr = nbr2_list->nbr2_nbr;
   nbr2 = nbr2_list->neighbor_2;
 
   if (nbr2->neighbor_2_pointer < 1) {
   nbr2 = nbr2_list->neighbor_2;
 
   if (nbr2->neighbor_2_pointer < 1) {