diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-23 09:15:30 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-11-23 09:16:21 +0300 |
commit | e9a710bc8d90cc8044b4082c2919b0663043c7ed (patch) | |
tree | b73d389c0ec0bccf5a2ef089a2d9dfd305802fa9 /drivers/input/misc/pcspkr.c | |
parent | 59bbf83835f591b95c3bdd09d900f3584fa227af (diff) | |
download | linux-e9a710bc8d90cc8044b4082c2919b0663043c7ed.tar.xz |
Input: pcspkr - fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of just letting the code
fall through to the next case.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/4b659e3e65f2fa3c8bb7ed153e2016c3fb395bbc.1605896059.git.gustavoars@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/pcspkr.c')
-rw-r--r-- | drivers/input/misc/pcspkr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index e5e0d8ba80e1..9c666b2f14fe 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c @@ -33,6 +33,7 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, case SND_BELL: if (value) value = 1000; + break; case SND_TONE: break; default: |