Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci piixpm_i2c_exec(): No need to check 'cold' to fo...



details:   https://anonhg.NetBSD.org/src/rev/d3ac746c398f
branches:  trunk
changeset: 967826:d3ac746c398f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 23 15:41:34 2019 +0000

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

diffstat:

 sys/dev/pci/piixpm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a51a1fdbb622 -r d3ac746c398f sys/dev/pci/piixpm.c
--- a/sys/dev/pci/piixpm.c      Mon Dec 23 15:34:40 2019 +0000
+++ b/sys/dev/pci/piixpm.c      Mon Dec 23 15:41:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpm.c,v 1.55 2019/12/22 23:23:32 thorpej Exp $ */
+/* $NetBSD: piixpm.c,v 1.56 2019/12/23 15:41:34 thorpej Exp $ */
 /*     $OpenBSD: piixpm.c,v 1.39 2013/10/01 20:06:02 sf Exp $  */
 
 /*
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.55 2019/12/22 23:23:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpm.c,v 1.56 2019/12/23 15:41:34 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -546,7 +546,7 @@
        if (st & PIIX_SMB_HS_BUSY)
                return (1);
 
-       if (cold || sc->sc_poll)
+       if (sc->sc_poll)
                flags |= I2C_F_POLL;
 
        if (!I2C_OP_STOP_P(op) || cmdlen > 1 || len > 2 ||



Home | Main Index | Thread Index | Old Index