soc: arm: comply to coding guidelines MISRA C:2012 Rule 14.4

MISRA C:2012 Rule 14.4 (The controlling expression of an if statement
and the controlling expression of an iteration-statement shall have
essentially Boolean type.)

Use `do { ... } while (false)' instead of `do { ... } while (0)'.

This commit is a subset of the original commit:
5d02614e34a86b549c7707d3d9f0984bc3a5f22a

Signed-off-by: Simon Hein <SHein@baumer.com>
This commit is contained in:
Simon Hein 2022-07-19 22:33:00 +02:00 committed by Alberto Escolar
parent 93dfc69a3a
commit c29d0a3c4f
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@
isr, DEVICE_DT_INST_GET(n), 0);\
CY_PSOC6_NVIC_MUX_MAP(n); \
irq_enable(CY_PSOC6_NVIC_MUX_IRQN(n)); \
} while (0)
} while (false)
/*
* Devicetree related macros to construct pin control config data

View file

@ -263,7 +263,7 @@
DT_PROP(child, group_mask), \
0); \
irq_enable(DT_PROP(child, irq)); \
} while (0)
} while (false)
/**
* @brief Get a child node from path '/npcx-espi-vws-map/name'.