From 89fc126add0d6f5e253bd28c12a9bec6a06f75f0 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Sun, 10 Jan 2016 08:37:00 +0000 Subject: [PATCH] Initialize error value ta_lookup_kfib() by default to please compiler. --- sys/netpfil/ipfw/ip_fw_table_algo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c index 75b2b6707276..2ce550ea8417 100644 --- a/sys/netpfil/ipfw/ip_fw_table_algo.c +++ b/sys/netpfil/ipfw/ip_fw_table_algo.c @@ -3814,6 +3814,7 @@ ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen, #endif int error; + error = ENOENT; #ifdef INET if (keylen == 4) { in.s_addr = *(in_addr_t *)key; @@ -3826,9 +3827,6 @@ ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen, error = fib6_lookup_nh_basic(ti->data, (struct in6_addr *)key, 0, 0, 0, &nh6); #endif -#if !defined(INET6) && !defined(INET) - error = ENOENT; -#endif if (error != 0) return (0);