ospfd: fix stylistic issue

Macro that expands to be wrapped in parentheses was being used as a raw
condition for an if statement, leading to some very weird and confusing
formatting...

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2018-04-16 14:37:30 -04:00
parent 6c22329479
commit 72c038017e

View File

@ -1161,16 +1161,13 @@ static struct ospf_lsa *ospf_mpls_te_lsa_new(struct ospf *ospf,
/* Set opaque-LSA header fields depending of the type of RFC */ /* Set opaque-LSA header fields depending of the type of RFC */
if (IS_INTER_AS(lp->type)) { if (IS_INTER_AS(lp->type)) {
if if (IS_FLOOD_AS(lp->type)) {
IS_FLOOD_AS(lp->type) /* Enable AS external as we flood Inter-AS with Opaque
{ * Type 11
options |= OSPF_OPTION_E; /* Enable AS external */
as we flood options |= OSPF_OPTION_E;
Inter-AS with lsa_type = OSPF_OPAQUE_AS_LSA;
Opaque Type 11 */ } else {
lsa_type = OSPF_OPAQUE_AS_LSA;
}
else {
options |= LSA_OPTIONS_GET( options |= LSA_OPTIONS_GET(
area); /* Get area default option */ area); /* Get area default option */
options |= LSA_OPTIONS_NSSA_GET(area); options |= LSA_OPTIONS_NSSA_GET(area);