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 – Oct 25, 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.

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

---
 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
maintainer
#1 lore raw

Hi Alessandro Zanni,

Quoted 8 lines · Alessandro Zanni

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)

[...]

I have applied the following to branch ti-drivers-soc-next on [1] with some minor fixups in commit message. Thank you!

[1/1] soc: ti: knav_qmss_queue: remove useless statement

      commit: 74280c3d73143dcb976491fc085ccb0437cb5f0e

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D