]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: dead code (Coverity 1399377)
authorF. Aragon <paco@voltanet.io>
Thu, 28 Jun 2018 14:09:21 +0000 (16:09 +0200)
committerF. Aragon <paco@voltanet.io>
Fri, 29 Jun 2018 18:21:22 +0000 (20:21 +0200)
Replacing "continue" with "break" because the loop is a "while (0)"

Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/rfapi/rfapi_vty.c

index 18a979e531ea26c6ba09072d68cc2ceede9b63e0..1678e682c3483f208ffecb1d7f7154ce9f8c45e0 100644 (file)
@@ -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__);