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:
Yann Gautier 2022-06-21 14:34:13 +02:00
parent 3b06a53044
commit 56f895ede3

View file

@ -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;
}