mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
fix(versal2): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit. Enclosed the subexpression in parentheses to maintain the precedence. Change-Id: I33028cf220fa0768f8f266db294c42810f62b61c Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
a4ddd24f97
commit
15a9e381cd
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ int request_intr_type_el3(uint32_t id, interrupt_type_handler_t handler)
|
|||
uint32_t i;
|
||||
|
||||
/* Validate 'handler' and 'id' parameters */
|
||||
if (handler == NULL || index >= MAX_INTR_EL3) {
|
||||
if ((handler == NULL) || (index >= MAX_INTR_EL3)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
@ -647,7 +647,7 @@ void init_scmi_server(void)
|
|||
for (i = 0U; i < ARRAY_SIZE(scmi0_clock); i++) {
|
||||
|
||||
/* Keep i2c on 100MHz to calculate rates properly */
|
||||
if (i >= CLK_I2C0_0 && i <= CLK_I2C7_0)
|
||||
if ((i >= CLK_I2C0_0) && (i <= CLK_I2C7_0))
|
||||
continue;
|
||||
|
||||
/* Keep UFS clocks to default values to get the expected rates */
|
||||
|
|
Loading…
Add table
Reference in a new issue