braille_console: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:34:35 +0000 (12:34 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:38:01 +0000 (19:38 -0500)
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>
drivers/accessibility/braille/braille_console.c

index 9861302cc7dbb92200792f90f3ee69f135e32289..359bead4b2805ad266b7e7bd1a75dd634d363c0c 100644 (file)
@@ -246,6 +246,7 @@ static int keyboard_notifier_call(struct notifier_block *blk,
                                beep(440);
                }
        }
+               break;
        case KBD_UNBOUND_KEYCODE:
        case KBD_UNICODE:
        case KBD_KEYSYM: