diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-05-28 22:03:35 +0200 |
---|---|---|
committer | Denis Efremov <efremov@linux.com> | 2021-06-15 08:18:55 +0200 |
commit | 2c9bdf6e4771a5966a4f0d6bea45a1c7f38312d7 (patch) | |
tree | 24c5b5870d59b29aad654e7f3c4815f01bb056a6 /drivers/block | |
parent | floppy: cleanup: remove redundant assignment to nr_sectors (diff) | |
download | linux-2c9bdf6e4771a5966a4f0d6bea45a1c7f38312d7.tar.xz linux-2c9bdf6e4771a5966a4f0d6bea45a1c7f38312d7.zip |
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.c | 1 |
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: |