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>
{
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,
}
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 */
* when they are not translating.
*/
if (old_state != area->NSSATranslatorState) {
- if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED)
+ if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED) {
+ ++ospf6->redist_count;
ospf6_asbr_status_update(ospf6,
- ++ospf6->redist_count);
- else
+ ospf6->redist_count);
+ } else {
+ --ospf6->redist_count;
ospf6_asbr_status_update(ospf6,
- --ospf6->redist_count);
+ ospf6->redist_count);
+ }
}
}
}