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/13ca640dfbe7
branches:  trunk
changeset: 996492:13ca640dfbe7
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 1ad5d5385778 -r 13ca640dfbe7 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