diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2022-10-26 13:41:03 +0200 |
---|---|---|
committer | Donald Sharp <donaldsharp72@gmail.com> | 2022-10-26 13:41:03 +0200 |
commit | b6ce3356d93f247cb000bb379df2a6a49a526df6 (patch) | |
tree | dcab46231e99eeca1ec70c88b4738617122d4090 /ospf6d | |
parent | ldpd: Make ldpd happy with clang-16 (diff) | |
download | frr-b6ce3356d93f247cb000bb379df2a6a49a526df6.tar.xz frr-b6ce3356d93f247cb000bb379df2a6a49a526df6.zip |
ospf6d: Make ospf6d happy with clang-16
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_route.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index 8e964393f..fab0479d4 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -1360,7 +1360,7 @@ static void ospf6_route_show_table_summary(struct vty *vty, struct ospf6_route *route, *prev = NULL; int i, pathtype[OSPF6_PATH_TYPE_MAX]; unsigned int number = 0; - int nh_count = 0, nhinval = 0, ecmp = 0; + int nh_count = 0, ecmp = 0; int alternative = 0, destination = 0; char path_str[30]; @@ -1374,9 +1374,7 @@ static void ospf6_route_show_table_summary(struct vty *vty, else alternative++; nh_count = ospf6_num_nexthops(route->nh_list); - if (!nh_count) - nhinval++; - else if (nh_count > 1) + if (nh_count > 1) ecmp++; pathtype[route->path.type]++; number++; |