mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 22:09:48 +00:00
bgpd: Remove bgp_path_info_mpath_dequeue
This function is no doing any work. Let's remove. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
421cf856ef
commit
5b8bca89b8
@ -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
|
||||
*
|
||||
|
@ -56,7 +56,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 */
|
||||
|
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user