From dd57ccac53d2bf0a30af08cca8e4e9d960ab9cc9 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 8 Jun 2021 11:07:55 +0200 Subject: [PATCH] [bgp/bgp] Minor style improvement --- lonetix/bgp/bgp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lonetix/bgp/bgp.c b/lonetix/bgp/bgp.c index 934015c..ee9d7aa 100644 --- a/lonetix/bgp/bgp.c +++ b/lonetix/bgp/bgp.c @@ -378,10 +378,8 @@ Judgement Bgp_StartAllMsgWithdrawn(Bgpmpiter *it, Bgpmsg *msg) it->nextAttr = Bgp_GetMsgAttribute(msg, BGP_ATTR_MP_UNREACH_NLRI); if (!it->nextAttr && Bgp_GetErrStat(NULL)) return NG; - if (Bgp_StartMsgWithdrawn(&it->rng, msg) != OK) - return NG; - return OK; + return Bgp_StartMsgWithdrawn(&it->rng, msg); } void Bgp_InitMpWithdrawn(Bgpmpiter *it, @@ -427,10 +425,8 @@ Judgement Bgp_StartAllMsgNlri(Bgpmpiter *it, Bgpmsg *msg) it->nextAttr = Bgp_GetMsgAttribute(msg, BGP_ATTR_MP_REACH_NLRI); if (!it->nextAttr && Bgp_GetErrStat(NULL)) return NG; - if (Bgp_StartMsgNlri(&it->rng, msg) != OK) - return NG; - return OK; + return Bgp_StartMsgNlri(&it->rng, msg); } Prefix *Bgp_NextMpPrefix(Bgpmpiter *it)