diff --git a/sys/dev/i2c/cx24227.c b/sys/dev/i2c/cx24227.c index 2d921bc4f0d3..a7b0b5042e8a 100644 --- a/sys/dev/i2c/cx24227.c +++ b/sys/dev/i2c/cx24227.c @@ -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 -__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 #include @@ -108,7 +108,7 @@ cx24227_writereg(struct cx24227 *sc, uint8_t reg, uint16_t data) 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 @@ cx24227_readreg(struct cx24227 *sc, uint8_t reg, uint16_t *data) *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,