summaryrefslogtreecommitdiff
path: root/pbrd
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-07-25 21:38:39 -0500
committerGitHub <noreply@github.com>2023-07-25 21:38:39 -0500
commit11d19d1279c77691628b025b51bcb2eb13fd87c7 (patch)
tree8baac4fd03a0e58a33770079f5fbcff30e141b64 /pbrd
parent3f043d027f29ec676b3abdc46397a863fbd73717 (diff)
parentfe2bbcb01da0e4838c313be66c93923a6dd01c6c (diff)
Merge pull request #14093 from mjstapp/fix_pbr_style
lib,pbrd: clean up style issues
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_zebra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index f4bf287c59..030c4c1114 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -588,13 +588,13 @@ static bool pbr_encode_pbr_map_sequence(struct stream *s,
* can copy here instead of trying to infer from magic values.
*/
SET_FLAG(r.action.flags, PBR_ACTION_TABLE); /* always valid */
- if (PBR_MAP_UNDEFINED_QUEUE_ID != pbrms->action_queue_id)
+ if (pbrms->action_queue_id != PBR_MAP_UNDEFINED_QUEUE_ID)
SET_FLAG(r.action.flags, PBR_ACTION_QUEUE_ID);
- if (0 != pbrms->action_pcp)
+ if (pbrms->action_pcp != 0)
SET_FLAG(r.action.flags, PBR_ACTION_PCP);
- if (0 != pbrms->action_vlan_id)
+ if (pbrms->action_vlan_id != 0)
SET_FLAG(r.action.flags, PBR_ACTION_VLAN_ID);
- if (0 != pbrms->action_vlan_flags)
+ if (pbrms->action_vlan_flags != 0)
SET_FLAG(r.action.flags, PBR_ACTION_VLAN_FLAGS);
/*