summaryrefslogtreecommitdiffstats
path: root/babeld
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-13 14:21:26 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-13 14:39:54 +0100
commit752022670a294584ce45161a182f5b5790da45b9 (patch)
treed8bf19c32a08a1dd4ba2799ed2fee8450fe735e1 /babeld
parentMerge pull request #5798 from donaldsharp/bgp_packet_reformat (diff)
downloadfrr-752022670a294584ce45161a182f5b5790da45b9.tar.xz
frr-752022670a294584ce45161a182f5b5790da45b9.zip
*: Remove break after return
Just a deadcode. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'babeld')
-rw-r--r--babeld/kernel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c
index d4c962af3..e3c76bdd9 100644
--- a/babeld/kernel.c
+++ b/babeld/kernel.c
@@ -103,10 +103,8 @@ kernel_route(enum babel_kernel_routes operation, const unsigned char *pref,
switch (operation) {
case ROUTE_ADD:
return zebra_route(1, family, pref, plen, gate, ifindex, metric);
- break;
case ROUTE_FLUSH:
return zebra_route(0, family, pref, plen, gate, ifindex, metric);
- break;
case ROUTE_MODIFY:
if(newmetric == metric && memcmp(newgate, gate, 16) == 0 &&
newifindex == ifindex)
@@ -119,7 +117,6 @@ kernel_route(enum babel_kernel_routes operation, const unsigned char *pref,
rc = zebra_route(1, family, pref, plen, newgate, newifindex,
newmetric);
return rc;
- break;
}
return 0;