mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 03:40:48 +00:00
bgpd, lib, zebra: Remove unnecessary return
The route_map_walk_update_list callback function never uses the return code, so just remove it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
69f0272083
commit
46a69f10c0
@ -3112,7 +3112,7 @@ static void bgp_route_map_process_update(struct bgp *bgp, const char *rmap_name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bgp_route_map_process_update_cb(char *rmap_name)
|
static void bgp_route_map_process_update_cb(char *rmap_name)
|
||||||
{
|
{
|
||||||
struct listnode *node, *nnode;
|
struct listnode *node, *nnode;
|
||||||
struct bgp *bgp;
|
struct bgp *bgp;
|
||||||
@ -3127,8 +3127,6 @@ static int bgp_route_map_process_update_cb(char *rmap_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vpn_policy_routemap_event(rmap_name);
|
vpn_policy_routemap_event(rmap_name);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int bgp_route_map_update_timer(struct thread *thread)
|
int bgp_route_map_update_timer(struct thread *thread)
|
||||||
|
@ -807,7 +807,7 @@ static struct route_map *route_map_get(const char *name)
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
void route_map_walk_update_list(int (*route_map_update_fn)(char *name))
|
void route_map_walk_update_list(void (*route_map_update_fn)(char *name))
|
||||||
{
|
{
|
||||||
struct route_map *node;
|
struct route_map *node;
|
||||||
struct route_map *nnode = NULL;
|
struct route_map *nnode = NULL;
|
||||||
|
@ -216,7 +216,7 @@ extern void route_map_add_hook(void (*func)(const char *));
|
|||||||
extern void route_map_delete_hook(void (*func)(const char *));
|
extern void route_map_delete_hook(void (*func)(const char *));
|
||||||
extern void route_map_event_hook(void (*func)(route_map_event_t, const char *));
|
extern void route_map_event_hook(void (*func)(route_map_event_t, const char *));
|
||||||
extern int route_map_mark_updated(const char *name);
|
extern int route_map_mark_updated(const char *name);
|
||||||
extern void route_map_walk_update_list(int (*update_fn)(char *name));
|
extern void route_map_walk_update_list(void (*update_fn)(char *name));
|
||||||
extern void route_map_upd8_dependency(route_map_event_t type, const char *arg,
|
extern void route_map_upd8_dependency(route_map_event_t type, const char *arg,
|
||||||
const char *rmap_name);
|
const char *rmap_name);
|
||||||
extern void route_map_notify_dependencies(const char *affected_name,
|
extern void route_map_notify_dependencies(const char *affected_name,
|
||||||
|
@ -1282,13 +1282,11 @@ static struct route_map_rule_cmd route_set_src_cmd = {
|
|||||||
"src", route_set_src, route_set_src_compile, route_set_src_free,
|
"src", route_set_src, route_set_src_compile, route_set_src_free,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int zebra_route_map_process_update_cb(char *rmap_name)
|
static void zebra_route_map_process_update_cb(char *rmap_name)
|
||||||
{
|
{
|
||||||
if (IS_ZEBRA_DEBUG_EVENT)
|
if (IS_ZEBRA_DEBUG_EVENT)
|
||||||
zlog_debug("Event handler for route-map: %s",
|
zlog_debug("Event handler for route-map: %s",
|
||||||
rmap_name);
|
rmap_name);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int zebra_route_map_update_timer(struct thread *thread)
|
static int zebra_route_map_update_timer(struct thread *thread)
|
||||||
|
Loading…
Reference in New Issue
Block a user