Browse Source

fix(xilinx): remove unnecessary condition

Remove unnecessary condition check from pm_client_set_wakeup_sources()
as the code will never get to this condition.

Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Change-Id: Ia046e1188fdf6e024a146d3f4dd3d8f87a285e7f
pull/1996/head
Jay Buddhabhatti 2 years ago
parent
commit
c984123669
  1. 2
      plat/xilinx/common/pm_service/pm_api_sys.c

2
plat/xilinx/common/pm_service/pm_api_sys.c

@ -75,7 +75,7 @@ void pm_client_set_wakeup_sources(uint32_t node_id)
node_idx = irq_to_pm_node_idx(irq);
reg &= ~lowest_set;
if ((node_idx > XPM_NODEIDX_DEV_MIN) && (node_idx < XPM_NODEIDX_DEV_MAX)) {
if (node_idx > XPM_NODEIDX_DEV_MIN) {
if (pm_wakeup_nodes_set[node_idx] == 0U) {
/* Get device ID from node index */
device_id = PERIPH_DEVID(node_idx);

Loading…
Cancel
Save