diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-08 15:07:42 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-08 15:07:42 +0200 |
commit | 8998807f699d70be3ac137094550533226f32db8 (patch) | |
tree | 670f23be3f1b0a1d0b565fba974c19a1d5f19a9c /bgpd/bgp_nexthop.c | |
parent | Merge pull request #11145 from donaldsharp/bgp_capability (diff) | |
download | frr-8998807f699d70be3ac137094550533226f32db8.tar.xz frr-8998807f699d70be3ac137094550533226f32db8.zip |
*: Avoid casting to the same type as on the left
Just not necessary.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r-- | bgpd/bgp_nexthop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 25174ce65..de48c9751 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -396,8 +396,7 @@ void bgp_connected_add(struct bgp *bgp, struct connected *ifc) bgp_address_add(bgp, ifc, addr); - dest = bgp_node_get(bgp->connected_table[AFI_IP], - (struct prefix *)&p); + dest = bgp_node_get(bgp->connected_table[AFI_IP], &p); bc = bgp_dest_get_bgp_connected_ref_info(dest); if (bc) bc->refcnt++; @@ -430,8 +429,7 @@ void bgp_connected_add(struct bgp *bgp, struct connected *ifc) bgp_address_add(bgp, ifc, addr); - dest = bgp_node_get(bgp->connected_table[AFI_IP6], - (struct prefix *)&p); + dest = bgp_node_get(bgp->connected_table[AFI_IP6], &p); bc = bgp_dest_get_bgp_connected_ref_info(dest); if (bc) |