mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-02 16:25:18 +00:00
lib: Remove unnecessary comparison, for linked list
In the comparison function for a linked list code was always checking against passed in NULL's. The comparison function will never receive a NULL value for data from the linklist.c code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
040a0e6d26
commit
78946603e1
@ -1907,12 +1907,7 @@ route_map_get_index(struct route_map *map, const struct prefix *prefix,
|
||||
static int route_map_candidate_list_cmp(struct route_map_index *idx1,
|
||||
struct route_map_index *idx2)
|
||||
{
|
||||
if (!idx1)
|
||||
return -1;
|
||||
if (!idx2)
|
||||
return 1;
|
||||
|
||||
return (idx1->pref - idx2->pref);
|
||||
return idx1->pref - idx2->pref;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user