Skip to contentSkip to conversation

dm: remove redundant continue statement

PATCH New Colin King 1 participant 1 message Jun 16, 2021

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 dm: remove redundant continue statement

From: Colin Ian King <[email protected]>

The continue statement at the end of a for-loop has no effect, remove it.

Addresses-Coverity: ("Continue has no effect")

---
 drivers/md/dm-ps-io-affinity.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/dm-ps-io-affinity.c +0 -1
index 077655cd4fae..cb8e83bfb1a7 100644
@@ -91,7 +91,6 @@ static int ioa_add_path(struct path_selector *ps, struct dm_path *path,
 		cpumask_set_cpu(cpu, s->path_mask);
 		s->path_map[cpu] = pi;
 		refcount_inc(&pi->refcount);
-		continue;
 	}
 
 	if (refcount_dec_and_test(&pi->refcount)) {
Signature · 1 line
2.31.1