diff options
author | Ulf Brosziewski <bru@cvs.openbsd.org> | 2020-03-22 16:39:52 +0000 |
---|---|---|
committer | Ulf Brosziewski <bru@cvs.openbsd.org> | 2020-03-22 16:39:52 +0000 |
commit | ef9e7d8b76720454eb14fc9dda35f6a289b339f9 (patch) | |
tree | 21fec5dddfdcb89cf07e14f3ea526d6562cc010b /sys | |
parent | aa50b79f7b828e124c091b2219b110aeb33eb575 (diff) |
Mark omissions of break statements as intentional.
CID 1453207 (Missing break in switch)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/wscons/wsmouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index 5140f34bd3f..c62f5abbec6 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouse.c,v 1.59 2020/03/22 07:59:59 anton Exp $ */ +/* $OpenBSD: wsmouse.c,v 1.60 2020/03/22 16:39:51 bru Exp $ */ /* $NetBSD: wsmouse.c,v 1.35 2005/02/27 00:27:52 perry Exp $ */ /* @@ -770,7 +770,7 @@ wsmouse_set(struct device *sc, enum wsmouseval type, int value, int aux) wsmouse_position(sc, value, input->motion.pos.y); return; case WSMOUSE_REL_Y: - value += input->motion.pos.y; + value += input->motion.pos.y; /* fall through */ case WSMOUSE_ABS_Y: wsmouse_position(sc, input->motion.pos.x, value); return; @@ -796,7 +796,7 @@ wsmouse_set(struct device *sc, enum wsmouseval type, int value, int aux) wsmouse_mtstate(sc, aux, value, mts->pos.y, mts->pressure); return; case WSMOUSE_MT_REL_Y: - value += mts->pos.y; + value += mts->pos.y; /* fall through */ case WSMOUSE_MT_ABS_Y: wsmouse_mtstate(sc, aux, mts->pos.x, value, mts->pressure); return; |