Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/gpib Add missing FALLTHROUGH in gpib/mt.c



details:   https://anonhg.NetBSD.org/src/rev/cb0b25607469
branches:  trunk
changeset: 997158:cb0b25607469
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun Feb 24 20:54:13 2019 +0000

description:
Add missing FALLTHROUGH in gpib/mt.c

Requested by GCC in NetBSD/i386 kUBSan KCOV build.

diffstat:

 sys/dev/gpib/mt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d83bb74f5494 -r cb0b25607469 sys/dev/gpib/mt.c
--- a/sys/dev/gpib/mt.c Sun Feb 24 20:50:03 2019 +0000
+++ b/sys/dev/gpib/mt.c Sun Feb 24 20:54:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.31 2017/10/28 04:53:56 riastradh Exp $ */
+/*     $NetBSD: mt.c,v 1.32 2019/02/24 20:54:13 kamil Exp $ */
 
 /*-
  * Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.31 2017/10/28 04:53:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.32 2019/02/24 20:54:13 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -628,6 +628,7 @@
                                sc->sc_flags &= ~MTF_REW;
                                break;
                        }
+                       /* FALLTHROUGH */
                    case -2:
                        /*
                         * -2 means "timeout" reading DSJ, which is probably
@@ -639,6 +640,7 @@
                                    mtstart_callout, sc);
                                return;
                        }
+                       /* FALLTHROUGH */
                    case 2:
                        if (bp->b_cmd != MTNOP || !(bp->b_flags & B_CMD)) {
                                bp->b_error = EBUSY;



Home | Main Index | Thread Index | Old Index