mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 15:07:51 +00:00
Merge pull request #3095 from pacovn/Coverity_1473199_1472624_dead_code
bfdd zebra: dead code (Coverity 1472624 1473199)
This commit is contained in:
commit
e3626e7a1a
@ -886,14 +886,7 @@ static int bfd_configure_peer(struct bfd_peer_cfg *bpc, bool mhop,
|
|||||||
if (local)
|
if (local)
|
||||||
bpc->bpc_local = *local;
|
bpc->bpc_local = *local;
|
||||||
|
|
||||||
if (peer) {
|
bpc->bpc_peer = *peer;
|
||||||
bpc->bpc_peer = *peer;
|
|
||||||
} else {
|
|
||||||
/* Peer configuration is mandatory. */
|
|
||||||
snprintf(ebuf, ebuflen, "no peer configured");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
bpc->bpc_mhop = mhop;
|
bpc->bpc_mhop = mhop;
|
||||||
|
|
||||||
/* Handle interface specification configuration. */
|
/* Handle interface specification configuration. */
|
||||||
|
@ -4269,10 +4269,8 @@ static void process_remote_macip_add(vni_t vni,
|
|||||||
vni,
|
vni,
|
||||||
prefix_mac2str(macaddr,
|
prefix_mac2str(macaddr,
|
||||||
buf, sizeof(buf)),
|
buf, sizeof(buf)),
|
||||||
ipa_len ? " IP " : "",
|
" IP ",
|
||||||
ipa_len ?
|
ipaddr2str(ipaddr, buf1, sizeof(buf1)),
|
||||||
ipaddr2str(ipaddr,
|
|
||||||
buf1, sizeof(buf1)) : "",
|
|
||||||
n_type,
|
n_type,
|
||||||
tmp_seq);
|
tmp_seq);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user