Skip to contentSkip to conversation

soc: ti: knav_qmss_queue: remove useless statement

PATCH In review Alessandro Zanni 2 participants 2 messages Sep 24, 2024 TI Keystone multicore navigator drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: ti: knav_qmss_queue: remove useless statement

Remove the statement "continue" at the end of the loop where it becomes useless.

---
 drivers/soc/ti/knav_qmss_queue.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +0 -1
index 6c98738e548a..1cc54905b398 100644
@@ -723,7 +723,6 @@ static void kdesc_empty_pool(struct knav_pool *pool)
 		if (!desc) {
 			dev_dbg(pool->kdev->dev,
 				"couldn't unmap desc, continuing\n");
-			continue;
 		}
 	}
 	WARN_ON(i != pool->num_desc);
Signature · 1 line
2.43.0
#1 lore raw
Quoted 2 lines · Alessandro Zanni

Remove the statement "continue" at the end of the loop where it becomes useless.

How did you find the problem? Change log should say how you found it.

Quoted 11 lines
---
  drivers/soc/ti/knav_qmss_queue.c | 1 -
  1 file changed, 1 deletion(-)
drivers/soc/ti/knav_qmss_queue.c +0 -0
index 6c98738e548a..1cc54905b398 100644

drivers/soc/ti/knav_qmss_queue.c static void kdesc_empty_pool(struct knav_pool *pool) · line 728

Quoted 7 lines
drivers/soc/ti/knav_qmss_queue.c +0 -1
@@ -723,7 +723,6 @@ static void kdesc_empty_pool(struct knav_pool *pool)
  		if (!desc) {
  			dev_dbg(pool->kdev->dev,
  				"couldn't unmap desc, continuing\n");
-			continue;
  		}
  	}
  	WARN_ON(i != pool->num_desc);

thanks,
-- Shuah