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/54812.
details: https://anonhg.NetBSD.org/src/rev/06a47a334b36
branches: trunk
changeset: 968008:06a47a334b36
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Dec 31 14:25:33 2019 +0000
description:
Fix mis-placed parentheses. PR kern/54812.
diffstat:
sys/dev/i2c/cx24227.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9c153ba8edda -r 06a47a334b36 sys/dev/i2c/cx24227.c
--- a/sys/dev/i2c/cx24227.c Tue Dec 31 13:54:22 2019 +0000
+++ b/sys/dev/i2c/cx24227.c Tue Dec 31 14:25:33 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cx24227.c,v 1.10 2019/12/23 18:09:05 thorpej Exp $ */
+/* $NetBSD: cx24227.c,v 1.11 2019/12/31 14:25:33 thorpej Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cx24227.c,v 1.10 2019/12/23 18:09:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cx24227.c,v 1.11 2019/12/31 14:25:33 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -108,7 +108,7 @@
int error;
uint8_t r[3];
- if ((error = iic_acquire_bus(sc->tag, 0) != 0))
+ if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
return error;
r[0] = reg;
@@ -130,7 +130,7 @@
*data = 0x0000;
- if ((error = iic_acquire_bus(sc->tag, 0) != 0))
+ if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
return error;
error = iic_exec(sc->tag, I2C_OP_READ_WITH_STOP, sc->addr,
Home |
Main Index |
Thread Index |
Old Index