Skip to content

Commit ed2f987

Browse files
committed
platform: stm: fix parentheses for readability
Add parantheses to get rid of the -Wparentheses warning: platform/ext/target/stm/common/stm32h5xx/secure/target_cfg.c:490:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 490 | if(SCB->AIRCR & SCB_AIRCR_PRIS_Msk == 0) | ^ Change-Id: Icbbe6b0393f9ac0be3600fed60e3508dfe9a40eb Signed-off-by: Stefan Gloor <[email protected]> (cherry picked from commit 43474c807dc5ef9aa32ce8092770428ff66bd23c) Signed-off-by: Tim Pambor <[email protected]>
1 parent 633f39c commit ed2f987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/ext/target/stm/common/stm32h5xx/secure/target_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void gtzc_init_cfg(void)
487487
FLOW_CONTROL_STEP(uFlowProtectValue, FLOW_STEP_GTZC_VTOR_LCK, FLOW_CTRL_GTZC_VTOR_LCK);
488488

489489
/* Check PRIS Is enabled */
490-
if(SCB->AIRCR & SCB_AIRCR_PRIS_Msk == 0)
490+
if((SCB->AIRCR & SCB_AIRCR_PRIS_Msk) == 0)
491491
Error_Handler();
492492
FLOW_CONTROL_STEP(uFlowProtectValue, FLOW_STEP_GTZC_PRIS_EN, FLOW_CTRL_GTZC_PRIS_EN);
493493

0 commit comments

Comments
 (0)