]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st-regulator): use Boolean type for tests
authorYann Gautier <yann.gautier@st.com>
Mon, 28 Nov 2022 13:57:06 +0000 (14:57 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Dec 2022 13:18:31 +0000 (14:18 +0100)
commit9a00daf9dd0a25da45a43142ca27126e6e26a622
tree5fc040e8e8fc48b6a0102bba2a1af3abcebc9178
parent91af163cbbfab936e70568998e8b9dcb10203b8e
fix(st-regulator): use Boolean type for tests

This corrects MISRA C2012-14.4
The controlling expression of an if statement and the controlling
expression of an iteration-statement shall have essentially Boolean type.

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