diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2020-11-26 09:34:39 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2020-11-26 13:18:29 +0000 |
commit | fdf6b6f52460890305f231c041e060fbb232550b (patch) | |
tree | 07f5301bd4b7ce912a38f1b79fded3a1fdf5b804 /src/vnet/fib/fib_node_list.c | |
parent | ab4fbedf27ece4ea623d7c3b54cc54f0133ba1f7 (diff) |
fib: Expressive type for walk return code. Honour code.
Type: improvement
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Change-Id: I487e698555545fce85d02d55deaaf7bb0007e388
Diffstat (limited to 'src/vnet/fib/fib_node_list.c')
-rw-r--r-- | src/vnet/fib/fib_node_list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_node_list.c b/src/vnet/fib/fib_node_list.c index ceb951b466b..bcd9a09152d 100644 --- a/src/vnet/fib/fib_node_list.c +++ b/src/vnet/fib/fib_node_list.c @@ -372,7 +372,8 @@ fib_node_list_walk (fib_node_list_t list, elt = fib_node_list_elt_get(sibling); sibling = elt->fnle_next; - fn(&elt->fnle_owner, args); + if (WALK_STOP == fn(&elt->fnle_owner, args)) + break; } } |