Fixed the Coverity issue
1586018:
Control flow issues (DEADCODE) /bgpd/bgp_ecommunity.c: 1402 in ecommunity_ecom2str()
Signed-off-by: anlan_cs <anlan_cs@tom.com>
if (sub_type == ECOMMUNITY_LINK_BANDWIDTH)
ecommunity_lb_str(encbuf, sizeof(encbuf), pnt,
ecom->disable_ieee_floating);
- else
- unk_ecom = 1;
- } else if (type == ECOMMUNITY_ENCODE_AS_NON_TRANS) {
- sub_type = *pnt++;
- if (sub_type == ECOMMUNITY_EXTENDED_LINK_BANDWIDTH)
+ else if (sub_type == ECOMMUNITY_EXTENDED_LINK_BANDWIDTH)
ipv6_ecommunity_lb_str(encbuf, sizeof(encbuf),
pnt);
else