dm raid: fix fall-through warning in rs_check_takeover() for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 20 Apr 2021 22:09:02 +0000 (18:09 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 20 Apr 2021 22:10:04 +0000 (18:10 -0400)
commitbe962b2f077e96533ed3080127fcbe60b224638a
tree2e14846419fc5c1e2dce80d4f7749215ce79a0cc
parent87d5742b73f24ca389cd832fa088170ca5d3d093
dm raid: fix fall-through warning in rs_check_takeover() for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c