From 8998807f699d70be3ac137094550533226f32db8 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 8 May 2022 16:07:42 +0300 Subject: *: Avoid casting to the same type as on the left Just not necessary. Signed-off-by: Donatas Abraitis --- bgpd/bgp_nexthop.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bgpd/bgp_nexthop.c') diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 25174ce654..de48c97513 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) -- cgit v1.2.3