From: F. Aragon Date: Thu, 28 Jun 2018 14:09:21 +0000 (+0200) Subject: bgpd: dead code (Coverity 1399377) X-Git-Tag: frr-6.1-dev~216^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=77bfaef4eb3ce845605b69367c84cfaca5ab3555;p=matthieu%2Ffrr.git bgpd: dead code (Coverity 1399377) Replacing "continue" with "break" because the loop is a "while (0)" Signed-off-by: F. Aragon --- diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c index 18a979e531..1678e682c3 100644 --- a/bgpd/rfapi/rfapi_vty.c +++ b/bgpd/rfapi/rfapi_vty.c @@ -3021,9 +3021,9 @@ static int rfapiDeleteLocalPrefixesByRFD(struct rfapi_local_reg_delete_arg *cda, * match un, vn addresses of NVEs */ if (pUn && (rfapi_ip_addr_cmp(pUn, &rfd->un_addr))) - continue; + break; if (pVn && (rfapi_ip_addr_cmp(pVn, &rfd->vn_addr))) - continue; + break; #if DEBUG_L2_EXTRA vnc_zlog_debug_verbose("%s: un, vn match", __func__);