]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st): explicitly check operators precedence
authorYann Gautier <yann.gautier@st.com>
Fri, 18 Nov 2022 14:03:22 +0000 (15:03 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Dec 2022 13:20:01 +0000 (14:20 +0100)
commit56048fe215997ab6788ebd251e8cde094392dfc7
tree5f039769b1254a1c2e152b5025dc7fddd670cdc3
parent825641d6150f05c1bcf6328ec726f46f2e9e37f9
fix(st): explicitly check operators precedence

This corrects the MISRA violation C2012-12.1:
The precedence of operators within expressions should be made explicit.
This is done either by adding parentheses, or by creating dedicated
variables to ease readability.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I5e3f191ee38eca7ef634bd7542e615ab625271f6
plat/st/common/stm32mp_dt.c
plat/st/stm32mp1/stm32mp1_fconf_firewall.c
plat/st/stm32mp1/stm32mp1_private.c
plat/st/stm32mp1/stm32mp1_syscfg.c