Fixes the following W=1 kernel build warning(s):

 drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’:
 drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’ set but not 
used [-Wunused-but-set-variable]

Cc: Santosh Shilimkar <ssant...@kernel.org>
Cc: Sandeep Nair <sandee...@ti.com>
Cc: Cyril Chemparathy <cy...@ti.com>
Signed-off-by: Lee Jones <lee.jo...@linaro.org>
---
 drivers/soc/ti/knav_qmss_queue.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index a460f201bf8e7..f36c2dcb26911 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -1307,12 +1307,11 @@ static int knav_setup_queue_pools(struct knav_device 
*kdev,
                                   struct device_node *queue_pools)
 {
        struct device_node *type, *range;
-       int ret;
 
        for_each_child_of_node(queue_pools, type) {
                for_each_child_of_node(type, range) {
-                       ret = knav_setup_queue_range(kdev, range);
                        /* return value ignored, we init the rest... */
+                       knav_setup_queue_range(kdev, range);
                }
        }
 
-- 
2.25.1

Reply via email to