]> git.baikalelectronics.ru Git - kernel.git/commit
Input: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 6 Jul 2021 21:05:26 +0000 (16:05 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 6 Jul 2021 21:26:17 +0000 (16:26 -0500)
commitb4c1aaa8fa4d380937887b9b425863421710e34d
tree1fac4d5a15e5a72280a52b18caa1dbbc30a8f3e9
parentb87add1c435ee9fa394907447a98e6a04598fe8f
Input: Fix fall-through warning for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
warning by explicitly adding a fallthrough; statement.

Notice that this seems to be a Duff device for performance[1]. So,
although the code looks a bit _funny_, I didn't want to refactor
or modify it beyond merely adding a fallthrough marking, which
might be the least disruptive way to fix this issue.

[1] https://www.drdobbs.com/a-reusable-duff-device/184406208

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/input/joystick/sidewinder.c