Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa Add missing FALLTHROUGH in isa/mcd.c
details: https://anonhg.NetBSD.org/src/rev/f028a79b5780
branches: trunk
changeset: 449168:f028a79b5780
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Feb 24 20:50:03 2019 +0000
description:
Add missing FALLTHROUGH in isa/mcd.c
Requested by GCC in NetBSD/i386 kUBSan KCOV build.
Reviewed by <mgorny>
diffstat:
sys/dev/isa/mcd.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r a4ec49cabea0 -r f028a79b5780 sys/dev/isa/mcd.c
--- a/sys/dev/isa/mcd.c Sun Feb 24 20:20:18 2019 +0000
+++ b/sys/dev/isa/mcd.c Sun Feb 24 20:50:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcd.c,v 1.117 2018/09/03 16:29:31 riastradh Exp $ */
+/* $NetBSD: mcd.c,v 1.118 2019/02/24 20:50:03 kamil Exp $ */
/*
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -56,7 +56,7 @@
/*static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.117 2018/09/03 16:29:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.118 2019/02/24 20:50:03 kamil Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1192,6 +1192,7 @@
mbx->count = RDELAY_WAITMODE;
mbx->state = MCD_S_WAITMODE;
+ /* FALLTHROUGH */
case MCD_S_WAITMODE:
callout_stop(&sc->sc_pintr_ch);
for (i = 20; i; i--) {
@@ -1230,6 +1231,7 @@
mbx->count = RDELAY_WAITREAD;
mbx->state = MCD_S_WAITREAD;
+ /* FALLTHROUGH */
case MCD_S_WAITREAD:
callout_stop(&sc->sc_pintr_ch);
nextblock:
Home |
Main Index |
Thread Index |
Old Index