]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix function indirection when none is needed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 24 Feb 2016 20:05:46 +0000 (15:05 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 24 Feb 2016 20:05:46 +0000 (15:05 -0500)
bgp_update_main was only called by bgp_update.
bgp_update only called bgp_update_main.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reivewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
bgpd/bgp_route.c

index ef2f07caf20c1590031af4a7e835cbe9d4117aef..737e8e1110401b8306b0a05969426b8816605270 100644 (file)
@@ -2154,11 +2154,11 @@ bgp_update_martian_nexthop (struct bgp *bgp, afi_t afi, safi_t safi, struct attr
   return ret;
 }
 
-static int
-bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
-                 struct attr *attr, afi_t afi, safi_t safi, int type,
-                 int sub_type, struct prefix_rd *prd, u_char *tag,
-                 int soft_reconfig)
+int
+bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
+            struct attr *attr, afi_t afi, safi_t safi, int type,
+            int sub_type, struct prefix_rd *prd, u_char *tag,
+            int soft_reconfig)
 {
   int ret;
   int aspath_loop_count = 0;
@@ -2516,15 +2516,6 @@ bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
   return 0;
 }
 
-int
-bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
-            struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type,
-            struct prefix_rd *prd, u_char *tag, int soft_reconfig)
-{
-  return bgp_update_main (peer, p, addpath_id, attr, afi, safi, type, sub_type,
-                          prd, tag, soft_reconfig);
-}
-
 int
 bgp_withdraw (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
               struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type,