summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vrf.h
diff options
context:
space:
mode:
authorTuetuopay <tuetuopay@me.com>2019-03-22 11:18:31 +0100
committerTuetuopay <tuetuopay@me.com>2019-03-22 11:18:31 +0100
commit77b998fbf070aa7a2363f48d13fde8e2505db813 (patch)
tree910e8b111a2ccc9815d39561b289bfce7b773530 /zebra/zebra_vrf.h
parentzebra: Lookup dad and replication settings from EVPN VRF (diff)
downloadfrr-77b998fbf070aa7a2363f48d13fde8e2505db813.tar.xz
frr-77b998fbf070aa7a2363f48d13fde8e2505db813.zip
zebra: Fixes following srimohans' advice
Signed-off-by: Tuetuopay <tuetuopay@me.com> Sponsored-by: Scaleway
Diffstat (limited to 'zebra/zebra_vrf.h')
-rw-r--r--zebra/zebra_vrf.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/zebra_vrf.h b/zebra/zebra_vrf.h
index 3574f4b67..115d2b9d0 100644
--- a/zebra/zebra_vrf.h
+++ b/zebra/zebra_vrf.h
@@ -203,9 +203,7 @@ extern struct route_table *zebra_vrf_table(afi_t, safi_t, vrf_id_t);
static inline vrf_id_t zebra_vrf_get_evpn_id(void)
{
- struct zebra_vrf *zvrf = NULL;
- zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
- return zvrf ? zvrf->evpn_vrf_id : VRF_DEFAULT;
+ return zebra_vrf_lookup_by_id(VRF_DEFAULT)->evpn_vrf_id;
}
static inline struct zebra_vrf *zebra_vrf_get_evpn(void)
{