Initialize error value ta_lookup_kfib() by default to please compiler.

This commit is contained in:
Alexander V. Chernikov 2016-01-10 08:37:00 +00:00
parent 60c274aaf8
commit 89fc126add
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293630

View File

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