mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 14:25:44 +00:00
fix(st-clock): correct MISRA C2012 15.6
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: If26f3732d31df11bf389a16298ec9e9d8a4a2279
This commit is contained in:
parent
3b06a53044
commit
56f895ede3
1 changed files with 2 additions and 1 deletions
|
@ -838,8 +838,9 @@ int _clk_stm32_gate_wait_ready(struct stm32_clk_priv *priv, uint16_t gate_id,
|
|||
}
|
||||
}
|
||||
|
||||
if ((mmio_read_32(address) & mask_rdy) != mask_test)
|
||||
if ((mmio_read_32(address) & mask_rdy) != mask_test) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue