diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2022-05-09 23:16:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 23:16:30 +0200 |
commit | 2a3807c3cec0c37461d94c447d0997027af1c5a0 (patch) | |
tree | d3f12bc4a5d5da573fb3d80bcf9ba0337d8c2ee8 /zebra | |
parent | Merge pull request #11154 from opensourcerouting/fix/increase_bgp_flags (diff) | |
parent | *: Avoid casting to the same type as on the left (diff) | |
download | frr-2a3807c3cec0c37461d94c447d0997027af1c5a0.tar.xz frr-2a3807c3cec0c37461d94c447d0997027af1c5a0.zip |
Merge pull request #11163 from opensourcerouting/fix/same_type_casting
*: Avoid casting to the same type as on the left
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_nb_state.c | 2 | ||||
-rw-r--r-- | zebra/zebra_vxlan.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_nb_state.c b/zebra/zebra_nb_state.c index a9cb096ae..219e4d028 100644 --- a/zebra/zebra_nb_state.c +++ b/zebra/zebra_nb_state.c @@ -248,7 +248,7 @@ lib_vrf_zebra_ribs_rib_route_get_next(struct nb_cb_get_next_args *args) if (args->list_entry == NULL) rn = route_top(zrt->table); else - rn = srcdest_route_next((struct route_node *)rn); + rn = srcdest_route_next(rn); /* Optimization: skip empty route nodes. */ while (rn && rn->info == NULL) rn = route_next(rn); diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index d883336f0..020ff6f3c 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -1078,9 +1078,7 @@ static int zevpn_build_hash_table_zns(struct ns *ns, static void zevpn_build_hash_table(void) { - ns_walk_func(zevpn_build_hash_table_zns, - (void *)NULL, - (void **)NULL); + ns_walk_func(zevpn_build_hash_table_zns, NULL, NULL); } /* |