summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-09-05 14:13:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-09-05 14:18:11 +1000
commit536e17c83e565ddba9c7c5a4cd613edf8378e9aa (patch)
tree400584a9e3b2adf6135aea2c354ba2eaf025f441 /src
parentec0901e5f81d9cad6cc8bbdcb5ea075009c13de5 (diff)
Mark some switch case fallthroughs with comments
Just to make it explicit Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/ps2comm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ps2comm.c b/src/ps2comm.c
index ed2f751..c474c07 100644
--- a/src/ps2comm.c
+++ b/src/ps2comm.c
@@ -582,12 +582,15 @@ PS2ReadHwStateProto(InputInfoPtr pInfo,
case 8:
hw->multi[7] = ((buf[5] & 0x08)) ? 1 : 0;
hw->multi[6] = ((buf[4] & 0x08)) ? 1 : 0;
+ /* fallthrough */
case 6:
hw->multi[5] = ((buf[5] & 0x04)) ? 1 : 0;
hw->multi[4] = ((buf[4] & 0x04)) ? 1 : 0;
+ /* fallthrough */
case 4:
hw->multi[3] = ((buf[5] & 0x02)) ? 1 : 0;
hw->multi[2] = ((buf[4] & 0x02)) ? 1 : 0;
+ /* fallthrough */
case 2:
hw->multi[1] = ((buf[5] & 0x01)) ? 1 : 0;
hw->multi[0] = ((buf[4] & 0x01)) ? 1 : 0;