Browse Source

fix(zynqmp): resolve misra R15.7 warnings

MISRA Violation: MISRA-C:2012 R.15.7
- All if . . else if constructs shall be terminated
with an else statement.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Change-Id: If921ca7c30b2feea6535791aa15f4de7101c3134
pull/1985/head
Venkatesh Yadav Abbarapu 3 years ago
parent
commit
16de22d037
  1. 2
      plat/xilinx/common/ipi.c
  2. 2
      plat/xilinx/zynqmp/bl31_zynqmp_setup.c
  3. 2
      plat/xilinx/zynqmp/pm_service/pm_api_clock.c

2
plat/xilinx/common/ipi.c

@ -95,6 +95,8 @@ int ipi_mb_validate(uint32_t local, uint32_t remote, unsigned int is_secure)
ret = -EPERM;
} else if (IPI_IS_SECURE(remote) && !is_secure) {
ret = -EPERM;
} else {
/* To fix the misra 15.7 warning */
}
return ret;

2
plat/xilinx/zynqmp/bl31_zynqmp_setup.c

@ -83,6 +83,8 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
if (rc == 0) {
panic();
}
} else {
ERROR("BL31: No console device found.\n");
}
/* Initialize the platform config for future decision making */
zynqmp_config_setup();

2
plat/xilinx/zynqmp/pm_service/pm_api_clock.c

@ -3039,6 +3039,8 @@ uint8_t pm_clock_has_div(unsigned int clock_id, enum pm_clock_div_id div_id)
} else if (nodes[i].type == TYPE_DIV2) {
if (div_id == PM_CLOCK_DIV1_ID)
return 1;
} else {
/* To fix the misra 15.7 warning */
}
}

Loading…
Cancel
Save