Coverity scan found this issue. The bgp_vrf variable in
ensure_vrf_tovpn_sid() has already been derefed in all paths
at this point in time. No need to check for it existing
at this point.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* skip when bgp vpn instance ins't allocated
* or srv6 locator chunk isn't allocated
*/
- if (!bgp_vpn || !bgp_vpn->srv6_locator_chunks || !bgp_vrf)
+ if (!bgp_vpn || !bgp_vpn->srv6_locator_chunks)
return;
tovpn_sid_index = bgp_vrf->vpn_policy[afi].tovpn_sid_index;