]> git.proxmox.com Git - mirror_frr.git/commit
zebra: minor changes on "zebra_evpn_mac_gw_macip_add" function
authoranlan_cs <vic.lan@pica8.com>
Sat, 19 Feb 2022 03:32:27 +0000 (22:32 -0500)
committeranlan_cs <vic.lan@pica8.com>
Sat, 19 Feb 2022 03:49:47 +0000 (22:49 -0500)
commit5ff58d0a472120078637820bce0e68e47058ce73
tree278f7cdd3e68f6575abac80f5ad29b5e76bb497f
parent7baebfb715fe61244930c18821f4c38d392bfeb0
zebra: minor changes on "zebra_evpn_mac_gw_macip_add" function

Two minor changes:
    1) Change `zebra_evpn_mac_gw_macip_add()` 's return type to `void`.
    2) Since `zebra_evpn_mac_gw_macip_add()` has already `assert` the returned
    `mac`, the check of its return value makes no sense. And keep setting
    `mac->flags` inside `zebra_evpn_mac_gw_macip_add()` is more reasonable. So
    just move the setting `mac->flags` inside `zebra_evpn_mac_gw_macip_add()`.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
zebra/zebra_evpn.c
zebra/zebra_evpn_mac.c
zebra/zebra_evpn_mac.h