]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(xilinx): remove unnecessary condition
authorJay Buddhabhatti <jay.buddhabhatti@amd.com>
Fri, 3 Feb 2023 09:16:44 +0000 (01:16 -0800)
committerJay Buddhabhatti <jay.buddhabhatti@amd.com>
Tue, 28 Mar 2023 06:08:29 +0000 (23:08 -0700)
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

plat/xilinx/common/pm_service/pm_api_sys.c

index 2122d98f398c78384b8c4ca54f3c1a92d1e8b402..582b724f85ca5d67f1817074411cfa7386fa8b61 100644 (file)
@@ -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);