From 536e17c83e565ddba9c7c5a4cd613edf8378e9aa Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 5 Sep 2014 14:13:08 +1000 Subject: [PATCH] Mark some switch case fallthroughs with comments Just to make it explicit Signed-off-by: Peter Hutterer Reviewed-by: Keith Packard --- src/ps2comm.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- GitLab