dm: remove useless loop in __split_and_process_bio
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 1 Mar 2021 09:58:43 +0000 (04:58 -0500)
committerMike Snitzer <snitzer@redhat.com>
Fri, 26 Mar 2021 18:53:41 +0000 (14:53 -0400)
commit8615cb65bd638ba5f9ebe71115cc5956eb1713d0
tree93d0b0910d51db6dfc049ab7a1ce9700a3083d08
parentc40819f267f76e69418d3bc9fbb57962a6845673
dm: remove useless loop in __split_and_process_bio

Remove useless "while" loop. If the condition ci.sector_count && !error is
true, we go to a branch that ends with "break". If this condition is
false, the "while" loop will not be executed again. So, the loop can't be
executed more than once.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c