]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Cosmetic change for mac check 13493/head
authoranlan_cs <vic.lan@pica8.com>
Wed, 10 May 2023 08:50:36 +0000 (16:50 +0800)
committeranlan_cs <vic.lan@pica8.com>
Wed, 10 May 2023 08:58:29 +0000 (16:58 +0800)
Remove useless `return` code, and correct a spelling.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
bgpd/bgp_mac.c

index 980f351303d537cb190ddd43b820f6efc8102194..6272bdb8842a24a6f21b77daf06338fd87d868ab 100644 (file)
@@ -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)