summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mac.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2023-05-10 10:50:36 +0200
committeranlan_cs <vic.lan@pica8.com>2023-05-10 10:58:29 +0200
commit3dc1d6ca3074d5f1f4b783de38cb0768fc8f1876 (patch)
treef5987830f7709138e021b5bc7f42ab453cb5a61f /bgpd/bgp_mac.c
parentMerge pull request #13425 from FRRouting/revert-12646-mpls_alloc_per_nh (diff)
downloadfrr-3dc1d6ca3074d5f1f4b783de38cb0768fc8f1876.tar.xz
frr-3dc1d6ca3074d5f1f4b783de38cb0768fc8f1876.zip
bgpd: Cosmetic change for mac check
Remove useless `return` code, and correct a spelling. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_mac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgp_mac.c b/bgpd/bgp_mac.c
index 980f35130..6272bdb88 100644
--- a/bgpd/bgp_mac.c
+++ b/bgpd/bgp_mac.c
@@ -360,7 +360,7 @@ bool bgp_mac_exist(const struct ethaddr *mac)
return true;
}
-/* This API checks EVPN type-2 prefix and comapares
+/* This API checks EVPN type-2 prefix and compares
* mac against any of local assigned (SVIs) MAC
* address.
*/
@@ -375,8 +375,6 @@ bool bgp_mac_entry_exists(const struct prefix *p)
return false;
return bgp_mac_exist(&p->u.prefix_evpn.macip_addr.mac);
-
- return true;
}
static void bgp_mac_show_mac_entry(struct hash_bucket *bucket, void *arg)