]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st-regulator): explicitly check operators precedence
authorYann Gautier <yann.gautier@st.com>
Mon, 28 Nov 2022 13:55:14 +0000 (14:55 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Dec 2022 13:18:30 +0000 (14:18 +0100)
commit68083e7ad5ded7adbeca147546bbda6c14cab049
tree40b83f3d43247287b454152aeb2e7ae2917357e0
parent3cebeec2ae452d33ec0cea322f4ab18137e41631
fix(st-regulator): 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.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: If8312442222ba848ac1f5e38df1bed0a367646a7
drivers/st/regulator/regulator_core.c