Module Name:    src
Committed By:   thorpej
Date:           Mon Dec 23 15:29:36 UTC 2019

Modified Files:
        src/sys/dev/ic: pcf8584.c

Log Message:
pcfiic_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/ic/pcf8584.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/pcf8584.c
diff -u src/sys/dev/ic/pcf8584.c:1.16 src/sys/dev/ic/pcf8584.c:1.17
--- src/sys/dev/ic/pcf8584.c:1.16	Sun Dec 22 23:23:32 2019
+++ src/sys/dev/ic/pcf8584.c	Mon Dec 23 15:29:36 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcf8584.c,v 1.16 2019/12/22 23:23:32 thorpej Exp $	*/
+/*	$NetBSD: pcf8584.c,v 1.17 2019/12/23 15:29:36 thorpej Exp $	*/
 /*	$OpenBSD: pcf8584.c,v 1.9 2007/10/20 18:46:21 kettenis Exp $ */
 
 /*
@@ -120,7 +120,7 @@ pcfiic_i2c_exec(void *arg, i2c_op_t op, 
             device_xname(sc->sc_dev), op, addr, (int)cmdlen, (int)len, flags);
 #endif
 
-	if (cold || sc->sc_poll)
+	if (sc->sc_poll)
 		flags |= I2C_F_POLL;
 
 	if (sc->sc_master)

Reply via email to