Skip to content

Commit

Permalink
dm ps io affinity: remove redundant continue statement
Browse files Browse the repository at this point in the history
The continue statement at the end of a for-loop has no effect,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Colin Ian King authored and Mike Snitzer committed Jun 25, 2021
1 parent 611c3e1 commit 326dbde
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm-ps-io-affinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 326dbde

Please sign in to comment.