summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-23 09:15:43 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-11-23 09:16:23 +0300
commitf7bda6662fd4f39113b4dee00f7ded44f846b7f4 (patch)
tree6d07c7dce21a94664dbc9ed702c05f8f9faa38e6 /drivers/input
parente9a710bc8d90cc8044b4082c2919b0663043c7ed (diff)
downloadlinux-f7bda6662fd4f39113b4dee00f7ded44f846b7f4.tar.xz
Input: libps2 - fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by replacing a /* Fall through */ comment with the new pseudo-keyword macro fallthrough. Notice that Clang doesn't recognize /* Fall through */ comments as implicit fall-through markings. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/d2944854e3e118b837755abf4cbdb497662001b7.1605896060.git.gustavoars@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/serio/libps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c
index 8a16e41f7b7f..250e213cc80c 100644
--- a/drivers/input/serio/libps2.c
+++ b/drivers/input/serio/libps2.c
@@ -405,7 +405,7 @@ bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data)
ps2dev->nak = PS2_RET_ERR;
break;
}
- /* Fall through */
+ fallthrough;
/*
* Workaround for mice which don't ACK the Get ID command.