summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_asbr.c
diff options
context:
space:
mode:
authorManoj Naragund <mnaragund@vmware.com>2021-10-22 00:33:10 -0700
committerManoj Naragund <mnaragund@vmware.com>2021-10-26 00:57:03 -0700
commitd214b64afa640e63f23b53eb40eda777c84d6556 (patch)
treed7d3299cf6541221982f9a879e201cccc1327857 /ospf6d/ospf6_asbr.c
parent512901ae53883b798eaf638455765c8a883d18a3 (diff)
ospf6d: minor code enhancements.
Description: code changes involve removal of increment and decrement operators during function calls. These expressions make code less readable. Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
-rw-r--r--ospf6d/ospf6_asbr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index cd2791fc48..fafe3dc36d 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -1308,7 +1308,8 @@ static void ospf6_asbr_redistribute_set(struct ospf6 *ospf6, int type)
{
ospf6_zebra_redistribute(type, ospf6->vrf_id);
- ospf6_asbr_status_update(ospf6, ++ospf6->redist_count);
+ ++ospf6->redist_count;
+ ospf6_asbr_status_update(ospf6, ospf6->redist_count);
}
static void ospf6_asbr_redistribute_unset(struct ospf6 *ospf6,
@@ -1330,7 +1331,8 @@ static void ospf6_asbr_redistribute_unset(struct ospf6 *ospf6,
}
ospf6_asbr_routemap_unset(red);
- ospf6_asbr_status_update(ospf6, --ospf6->redist_count);
+ --ospf6->redist_count;
+ ospf6_asbr_status_update(ospf6, ospf6->redist_count);
}
/* When an area is unstubified, flood all the external LSAs in the area */