Source-Changes-HG archive

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

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



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

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

diffstat:

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

diffs (27 lines):

diff -r 1f6e32de4249 -r 819444debd84 sys/dev/pci/ichsmb.c
--- a/sys/dev/pci/ichsmb.c      Mon Dec 23 15:34:23 2019 +0000
+++ b/sys/dev/pci/ichsmb.c      Mon Dec 23 15:34:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ichsmb.c,v 1.63 2019/12/22 23:23:32 thorpej Exp $      */
+/*     $NetBSD: ichsmb.c,v 1.64 2019/12/23 15:34:40 thorpej Exp $      */
 /*     $OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg Exp $ */
 
 /*
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.63 2019/12/22 23:23:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.64 2019/12/23 15:34:40 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -309,7 +309,7 @@
        if (st & LPCIB_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