Merge pull request #3095 from pacovn/Coverity_1473199_1472624_dead_code

bfdd zebra: dead code (Coverity 1472624 1473199)
This commit is contained in:
Rafael Zalamena 2018-09-26 13:55:52 -03:00 committed by GitHub
commit e3626e7a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 12 deletions

View File

@ -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. */

View File

@ -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;