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:
parent
93dfc69a3a
commit
c29d0a3c4f
|
@ -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
|
||||
|
|
|
@ -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'.
|
||||
|
|
Loading…
Reference in a new issue