Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/4a7334e81984
branches:  trunk
changeset: 448457:4a7334e81984
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 03 12:18:21 2019 +0000

description:
add missing break.

fairly sure this is correct, otherwise modelstr would be overwritten
with the next entry in this list..

diffstat:

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

diffs (26 lines):

diff -r f508cce1b719 -r 4a7334e81984 sys/dev/i2c/si70xx.c
--- a/sys/dev/i2c/si70xx.c      Sun Feb 03 12:17:14 2019 +0000
+++ b/sys/dev/i2c/si70xx.c      Sun Feb 03 12:18:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: si70xx.c,v 1.4 2018/06/16 21:22:13 thorpej Exp $       */
+/*     $NetBSD: si70xx.c,v 1.5 2019/02/03 12:18:21 mrg Exp $   */
 
 /*
  * Copyright (c) 2017 Brad Spencer <brad%anduin.eldar.org@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: si70xx.c,v 1.4 2018/06/16 21:22:13 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: si70xx.c,v 1.5 2019/02/03 12:18:21 mrg Exp $");
 
 /*
   Driver for the Silicon Labs SI7013/SI7020/SI7021
@@ -746,6 +746,7 @@
        case 0:
        case 0xff:
                snprintf(modelstr, sizeof(modelstr), "Engineering Sample");
+               break;
        case 13:
        case 20:
        case 21:



Home | Main Index | Thread Index | Old Index