Commit e7250109 authored by Lee Jones's avatar Lee Jones Committed by Santosh Shilimkar

soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

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: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent fd79aebe
...@@ -1307,12 +1307,11 @@ static int knav_setup_queue_pools(struct knav_device *kdev, ...@@ -1307,12 +1307,11 @@ static int knav_setup_queue_pools(struct knav_device *kdev,
struct device_node *queue_pools) struct device_node *queue_pools)
{ {
struct device_node *type, *range; struct device_node *type, *range;
int ret;
for_each_child_of_node(queue_pools, type) { for_each_child_of_node(queue_pools, type) {
for_each_child_of_node(type, range) { for_each_child_of_node(type, range) {
ret = knav_setup_queue_range(kdev, range);
/* return value ignored, we init the rest... */ /* return value ignored, we init the rest... */
knav_setup_queue_range(kdev, range);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment