Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic dwiic_i2c_exec(): No need to check 'cold' to forc...
details: https://anonhg.NetBSD.org/src/rev/92c7f385ba16
branches: trunk
changeset: 967821:92c7f385ba16
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 23 15:28:08 2019 +0000
description:
dwiic_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.
diffstat:
sys/dev/ic/dwiic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 877dba06920d -r 92c7f385ba16 sys/dev/ic/dwiic.c
--- a/sys/dev/ic/dwiic.c Mon Dec 23 15:25:08 2019 +0000
+++ b/sys/dev/ic/dwiic.c Mon Dec 23 15:28:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwiic.c,v 1.6 2019/12/22 23:23:32 thorpej Exp $ */
+/* $NetBSD: dwiic.c,v 1.7 2019/12/23 15:28:08 thorpej Exp $ */
/* $OpenBSD: dwiic.c,v 1.4 2018/05/23 22:08:00 kettenis Exp $ */
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwiic.c,v 1.6 2019/12/22 23:23:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwiic.c,v 1.7 2019/12/23 15:28:08 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -335,7 +335,7 @@
const uint8_t *bcmd;
uint8_t *bdata;
- if (cold || sc->sc_poll)
+ if (sc->sc_poll)
flags |= I2C_F_POLL;
DPRINTF(("%s: %s: op %d, addr 0x%02x, cmdlen %zu, len %zu, "
Home |
Main Index |
Thread Index |
Old Index