Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Fix mis-placed parentheses. PR kern/54813.



details:   https://anonhg.NetBSD.org/src/rev/8c2f09b70f41
branches:  trunk
changeset: 968009:8c2f09b70f41
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Dec 31 14:27:50 2019 +0000

description:
Fix mis-placed parentheses.  PR kern/54813.

diffstat:

 sys/dev/i2c/nxt2k.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 06a47a334b36 -r 8c2f09b70f41 sys/dev/i2c/nxt2k.c
--- a/sys/dev/i2c/nxt2k.c       Tue Dec 31 14:25:33 2019 +0000
+++ b/sys/dev/i2c/nxt2k.c       Tue Dec 31 14:27:50 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nxt2k.c,v 1.6 2019/12/23 19:00:59 thorpej Exp $ */
+/* $NetBSD: nxt2k.c,v 1.7 2019/12/31 14:27:50 thorpej Exp $ */
 
 /*
  * Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nxt2k.c,v 1.6 2019/12/23 19:00:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nxt2k.c,v 1.7 2019/12/31 14:27:50 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -74,7 +74,7 @@
 
        KASSERT((len + 1) <= 384);
 
-       if ((error = iic_acquire_bus(nxt->tag, 0) != 0))
+       if ((error = iic_acquire_bus(nxt->tag, 0)) != 0)
                return error;
 
        buffer[0] = reg;
@@ -93,7 +93,7 @@
 {
        int error;
 
-       if ((error = iic_acquire_bus(nxt->tag, 0) != 0))
+       if ((error = iic_acquire_bus(nxt->tag, 0)) != 0)
                return error;
 
        error = iic_exec(nxt->tag, I2C_OP_READ_WITH_STOP, nxt->addr,



Home | Main Index | Thread Index | Old Index