mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 13:36:05 +00:00
fix(st): 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: Ibed7b87b50959f03dc5550dfaffacafd1d79feee
This commit is contained in:
parent
0ebaf22289
commit
45d2d495e7
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ int dt_find_otp_name(const char *name, uint32_t *otp, uint32_t *otp_len)
|
||||||
return -FDT_ERR_BADVALUE;
|
return -FDT_ERR_BADVALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fdt32_to_cpu(*cuint) % sizeof(uint32_t)) {
|
if ((fdt32_to_cpu(*cuint) % sizeof(uint32_t)) != 0U) {
|
||||||
ERROR("Misaligned nvmem %s element: ignored\n", name);
|
ERROR("Misaligned nvmem %s element: ignored\n", name);
|
||||||
return -FDT_ERR_BADVALUE;
|
return -FDT_ERR_BADVALUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue