Skip to content

Commit

Permalink
bgpd: Remove bgp_path_info_mpath_dequeue
Browse files Browse the repository at this point in the history
This function is no doing any work.  Let's remove.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
  • Loading branch information
donaldsharp committed Oct 1, 2024
1 parent 73466aa commit 12b1f2c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
13 changes: 0 additions & 13 deletions bgpd/bgp_mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,19 +246,6 @@ bgp_path_info_mpath_get(struct bgp_path_info *path)
return path->mpath;
}

/*
* bgp_path_info_mpath_dequeue
*
* Remove a path from the multipath list
*/
void bgp_path_info_mpath_dequeue(struct bgp_path_info *path)
{
struct bgp_path_info_mpath *mpath = path->mpath;

if (!mpath)
return;
}

/*
* bgp_path_info_mpath_next
*
Expand Down
1 change: 0 additions & 1 deletion bgpd/bgp_mpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ bgp_path_info_mpath_aggregate_update(struct bgp_path_info *new_best,
struct bgp_path_info *old_best);

/* Unlink and free multipath information associated with a bgp_path_info */
extern void bgp_path_info_mpath_dequeue(struct bgp_path_info *path);
extern void bgp_path_info_mpath_free(struct bgp_path_info_mpath **mpath);

/* Walk list of multipaths associated with a best path */
Expand Down
4 changes: 0 additions & 4 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,6 @@ struct bgp_dest *bgp_path_info_reap(struct bgp_dest *dest,
else
bgp_dest_set_bgp_path_info(dest, pi->next);

bgp_path_info_mpath_dequeue(pi);

pi->next = NULL;
pi->prev = NULL;

Expand All @@ -541,8 +539,6 @@ struct bgp_dest *bgp_path_info_reap(struct bgp_dest *dest,
static struct bgp_dest *bgp_path_info_reap_unsorted(struct bgp_dest *dest,
struct bgp_path_info *pi)
{
bgp_path_info_mpath_dequeue(pi);

pi->next = NULL;
pi->prev = NULL;

Expand Down

0 comments on commit 12b1f2c

Please sign in to comment.