From 77bfaef4eb3ce845605b69367c84cfaca5ab3555 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Thu, 28 Jun 2018 16:09:21 +0200 Subject: [PATCH] bgpd: dead code (Coverity 1399377) Replacing "continue" with "break" because the loop is a "while (0)" Signed-off-by: F. Aragon --- bgpd/rfapi/rfapi_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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__);