Skip to content

Commit 490251d

Browse files
Flavio Ceolinnashif
authored andcommitted
soc: intel_adsp/ace: Comply with MISRA Rule 14.4
Use boolean type in a controlling expression. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 02ad7ef commit 490251d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soc/intel/intel_adsp/ace/timestamp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <stdint.h>
8+
#include <stdbool.h>
89
#include <zephyr/spinlock.h>
910
#include <zephyr/devicetree.h>
1011
#include <adsp_shim.h>
@@ -68,7 +69,7 @@ int intel_adsp_get_timestamp(uint32_t tsctrl, struct intel_adsp_timestamp *times
6869
sys_write32(tsctrl_temp, TSCTRL_ADDR);
6970

7071
/* Wait for timestamp capture to complete */
71-
while (1) {
72+
while (true) {
7273
tsctrl_temp = sys_read32(TSCTRL_ADDR);
7374
if (tsctrl_temp & ADSP_SHIM_TSCTRL_NTK) {
7475
break;

0 commit comments

Comments
 (0)