Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia add missing break.



details:   https://anonhg.NetBSD.org/src/rev/23d975e9f45d
branches:  trunk
changeset: 455036:23d975e9f45d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Oct 05 01:35:26 2019 +0000

description:
add missing break.

(this code is fun.  it has switch inside switch, and both switches
have two cases, one with an identifier and one with a magic number.)

diffstat:

 sys/dev/pcmcia/xirc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0a13d209f911 -r 23d975e9f45d sys/dev/pcmcia/xirc.c
--- a/sys/dev/pcmcia/xirc.c     Sat Oct 05 01:30:28 2019 +0000
+++ b/sys/dev/pcmcia/xirc.c     Sat Oct 05 01:35:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xirc.c,v 1.35 2018/12/08 17:46:14 thorpej Exp $        */
+/*     $NetBSD: xirc.c,v 1.36 2019/10/05 01:35:26 mrg Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xirc.c,v 1.35 2018/12/08 17:46:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xirc.c,v 1.36 2019/10/05 01:35:26 mrg Exp $");
 
 #include "opt_inet.h"
 
@@ -694,6 +694,7 @@
                                myla[i] = pcmcia_tuple_read_1(tuple, i + 3);
                        return (1);
                }
+               break;
 
        case 0x89:
                if (pcmcia_tuple_read_1(tuple, 0) != 0x04 ||



Home | Main Index | Thread Index | Old Index