From 321f8e0d840986044a86651a5e52e9ca66ac4bbe Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 14 Sep 2021 13:28:00 -0400 Subject: [PATCH] zebra: Fix case default usage w/ enum's We should not be using `case default` with an enumerated type This prevents the developer of new cases from knowing where they need to fix by just compiling. Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 1c8a1ad09a..79087c5849 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -353,8 +353,6 @@ static void show_nexthop_detail_helper(struct vty *vty, break; } break; - default: - break; } if (re->vrf_id != nexthop->vrf_id) { @@ -605,8 +603,6 @@ static void show_route_nexthop_helper(struct vty *vty, break; } break; - default: - break; } if ((re == NULL || (nexthop->vrf_id != re->vrf_id))) @@ -777,8 +773,6 @@ static void show_nexthop_json_helper(json_object *json_nexthop, break; } break; - default: - break; } if (nexthop->vrf_id != re->vrf_id) @@ -2247,8 +2241,6 @@ static void show_ip_route_nht_dump(struct vty *vty, struct nexthop *nexthop, break; } break; - default: - break; } }