mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-21 12:04:27 +00:00
fix(zynqmp): resolve misra R14.4 warnings
MISRA Violation: MISRA-C:2012 R.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: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I8f3f6f956d1d58ca201fb5895f12bcaabf2afd3b
This commit is contained in:
parent
e7e5d30308
commit
dd1fe7178b
2 changed files with 3 additions and 3 deletions
|
@ -262,7 +262,7 @@ static char *zynqmp_get_silicon_idcode_name(void)
|
||||||
return zynqmp_devices[i].name;
|
return zynqmp_devices[i].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ver & ZYNQMP_PL_STATUS_MASK) {
|
if ((ver & ZYNQMP_PL_STATUS_MASK) != 0U) {
|
||||||
return zynqmp_devices[i].name;
|
return zynqmp_devices[i].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,10 +121,10 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
panic();
|
panic();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (bl32_image_ep_info.pc) {
|
if (bl32_image_ep_info.pc != 0) {
|
||||||
VERBOSE("BL31: Secure code at 0x%lx\n", bl32_image_ep_info.pc);
|
VERBOSE("BL31: Secure code at 0x%lx\n", bl32_image_ep_info.pc);
|
||||||
}
|
}
|
||||||
if (bl33_image_ep_info.pc) {
|
if (bl33_image_ep_info.pc != 0) {
|
||||||
VERBOSE("BL31: Non secure code at 0x%lx\n", bl33_image_ep_info.pc);
|
VERBOSE("BL31: Non secure code at 0x%lx\n", bl33_image_ep_info.pc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue