soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'
authorLee Jones <lee.jones@linaro.org>
Sun, 22 Nov 2020 03:22:00 +0000 (19:22 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Sun, 22 Nov 2020 03:22:00 +0000 (19:22 -0800)
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 <ssantosh@kernel.org>
Cc: Sandeep Nair <sandeep_n@ti.com>
Cc: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/knav_qmss_queue.c

index 54afa8f7f4087c2db29059b9a33cb5b067b6580d..eb4cca4300382bf264fba37eb443439032441618 100644 (file)
@@ -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);
                }
        }