public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] soc: ti: knav_qmss_queue: remove useless statement
@ 2024-09-24 13:20 Alessandro Zanni
  2024-09-24 16:20 ` Shuah Khan
  0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Zanni @ 2024-09-24 13:20 UTC (permalink / raw)
  To: nm, ssantosh
  Cc: Alessandro Zanni, linux-kernel, linux-arm-kernel, skhan,
	anupnewsmail

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

Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
---
 drivers/soc/ti/knav_qmss_queue.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index 6c98738e548a..1cc54905b398 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] soc: ti: knav_qmss_queue: remove useless statement
@ 2024-09-24 21:46 Alessandro Zanni
  2024-10-25 14:02 ` Nishanth Menon
  0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Zanni @ 2024-09-24 21:46 UTC (permalink / raw)
  To: nm, ssantosh
  Cc: Alessandro Zanni, linux-kernel, linux-arm-kernel, skhan,
	anupnewsmail

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

Problem found with Coccinelle static analisys tool,
using continue.cocci script
(coccinelle.gitlabpages.inria.fr/website/rules/continue.cocci)

Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
---
 drivers/soc/ti/knav_qmss_queue.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index 6c98738e548a..1cc54905b398 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-25 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 13:20 [PATCH] soc: ti: knav_qmss_queue: remove useless statement Alessandro Zanni
2024-09-24 16:20 ` Shuah Khan
  -- strict thread matches above, loose matches on Subject: below --
2024-09-24 21:46 Alessandro Zanni
2024-10-25 14:02 ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox