summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-05-28 15:03:35 -0500
committerDenis Efremov <efremov@linux.com>2021-06-15 09:18:55 +0300
commit2c9bdf6e4771a5966a4f0d6bea45a1c7f38312d7 (patch)
tree24c5b5870d59b29aad654e7f3c4815f01bb056a6 /drivers/block
parent30ab5db7ee787c88236376ce6c88b53d613fcae2 (diff)
downloadlinux-2c9bdf6e4771a5966a4f0d6bea45a1c7f38312d7.tar.bz2
floppy: Fix fall-through warning 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 Link: https://lore.kernel.org/linux-hardening/47bcd36a-6524-348b-e802-0691d1b3c429@kernel.dk/ Suggested-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/floppy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index e96ad5b2c35e..cde70b0a55dd 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -2123,6 +2123,7 @@ static void format_interrupt(void)
switch (interpret_errors()) {
case 1:
cont->error();
+ break;
case 2:
break;
case 0: