diff mbox series

[2/3] helper: iplookuptable: removed unused variable

Message ID 20170203002802.28881-2-bill.fischofer@linaro.org
State Accepted
Commit 483af96a7a14885694496843551ed8fad708192c
Headers show
Series [1/3] helper: cuckootable: avoid storage leaks on error paths | expand

Commit Message

Bill Fischofer Feb. 3, 2017, 12:28 a.m. UTC
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2829 by avoiding
unused variable.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
 helper/iplookuptable.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

-- 
2.11.0.295.gd7dffce
diff mbox series

Patch

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);