[PATCH synaptics 1/4] Mark some switch case fallthroughs with comments
Peter Hutterer
peter.hutterer at who-t.net
Sun Sep 14 19:03:38 PDT 2014
Just to make it explicit
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
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;
--
1.9.3
More information about the xorg-devel
mailing list