diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-11-27 12:28:52 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-11-30 14:25:08 +0100 |
| commit | 2ff41dd690eab66d7ca12d28cecaab1d5f7b4dc9 (patch) | |
| tree | 78888d624b1b2cf131e61742ca0785cbde7de50c /lib/nexthop_group.c | |
| parent | e91ef7727f7c8062f0fc78fe3f6bf5a654abd0b7 (diff) | |
lib: remove useless nexthop_group_active_nexthop_num_no_recurse()
The nexthop_group_active_nexthop_num_no_recurse() function is no more
used. Let us remove the function call.
Fixes: 148813c22a8d ("zebra: zebra_nhg check each nexthop for active, not just number")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/nexthop_group.c')
| -rw-r--r-- | lib/nexthop_group.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index c75ff7b4cd..e5c2258191 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -105,20 +105,6 @@ uint8_t nexthop_group_active_nexthop_num(const struct nexthop_group *nhg) return num; } -uint8_t -nexthop_group_active_nexthop_num_no_recurse(const struct nexthop_group *nhg) -{ - struct nexthop *nhop; - uint8_t num = 0; - - for (nhop = nhg->nexthop; nhop; nhop = nhop->next) { - if (CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_ACTIVE)) - num++; - } - - return num; -} - bool nexthop_group_has_label(const struct nexthop_group *nhg) { struct nexthop *nhop; |
