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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-09-14 13:28:00 -04:00
parent 21ecdb1f34
commit 321f8e0d84

View File

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