Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2829 by avoiding
unused variable.

Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org>
---
 helper/iplookuptable.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 845125b3..9abdab22 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -639,11 +639,9 @@ prefix_insert_iter(
                /* If this entry contains a nexthop and a small cidr,
                 * push it to the next level.
                 */
-               if (entry->cidr > 0) {
-                       state = prefix_insert_into_lx(
-                                       tbl, ne, entry->cidr,
-                                       push, entry->cidr + 8);
-               }
+               if (entry->cidr > 0)
+                       (void)prefix_insert_into_lx(tbl, ne, entry->cidr,
+                                                   push, entry->cidr + 8);
        }
 
        ne += (ip >> 24);
-- 
2.11.0.295.gd7dffce

Reply via email to