Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c dbcool_read_volt() has a missing {} issue.



details:   https://anonhg.NetBSD.org/src/rev/862946d66169
branches:  trunk
changeset: 359289:862946d66169
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Feb 06 10:02:09 2018 +0000

description:
dbcool_read_volt() has a missing {} issue.

diffstat:

 sys/dev/i2c/dbcool.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 63a48e8f898b -r 862946d66169 sys/dev/i2c/dbcool.c
--- a/sys/dev/i2c/dbcool.c      Tue Feb 06 10:00:00 2018 +0000
+++ b/sys/dev/i2c/dbcool.c      Tue Feb 06 10:02:09 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dbcool.c,v 1.47 2017/09/22 03:04:17 macallan Exp $ */
+/*     $NetBSD: dbcool.c,v 1.48 2018/02/06 10:02:09 mrg Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.47 2017/09/22 03:04:17 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.48 2018/02/06 10:02:09 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1079,9 +1079,10 @@
                if (reg == DBCOOL_IMON) {
                        val = v1;
                        ext >>= 6;
-               } else
+               } else {
                        val = v2;
                        ext >>= 4;
+               }
                ext &= 0x0f;
        } else {
                ext = sc->sc_dc.dc_readreg(&sc->sc_dc, DBCOOL_EXTRES1_REG);



Home | Main Index | Thread Index | Old Index