Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic pcfiic_i2c_exec(): No need to check 'cold' to for...



details:   https://anonhg.NetBSD.org/src/rev/b38a84ae29c6
branches:  trunk
changeset: 847456:b38a84ae29c6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 23 15:29:36 2019 +0000

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

diffstat:

 sys/dev/ic/pcf8584.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8ad71b8db08c -r b38a84ae29c6 sys/dev/ic/pcf8584.c
--- a/sys/dev/ic/pcf8584.c      Mon Dec 23 15:28:08 2019 +0000
+++ b/sys/dev/ic/pcf8584.c      Mon Dec 23 15:29:36 2019 +0000
@@ -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 @@
             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)



Home | Main Index | Thread Index | Old Index