summaryrefslogtreecommitdiff
path: root/sys/dev/pci/esa.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 13:51:26 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 13:51:26 +0000
commita2705548511bc2760105bd44edb9810721b98b84 (patch)
treeb63476b887e70f69dc7d14942310b4ae22df07a1 /sys/dev/pci/esa.c
parentc883a3563709b4411c62a3b6ac39d42bc4c8c257 (diff)
Use & to test if bits are set, not &&; art@ ok.
Diffstat (limited to 'sys/dev/pci/esa.c')
-rw-r--r--sys/dev/pci/esa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c
index 6b40bb447bd..40cf4643c8e 100644
--- a/sys/dev/pci/esa.c
+++ b/sys/dev/pci/esa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esa.c,v 1.2 2002/04/08 06:06:10 deraadt Exp $ */
+/* $OpenBSD: esa.c,v 1.3 2002/08/08 13:51:25 aaron Exp $ */
/* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */
/*
@@ -1610,7 +1610,7 @@ esa_power(struct esa_softc *sc, int state)
if (pci_get_capability(pc, tag, PCI_CAP_PWRMGMT, &pmcapreg, 0)) {
data = pci_conf_read(pc, tag, pmcapreg + 4);
- if ((data && PCI_PMCSR_STATE_MASK) != state)
+ if ((data & PCI_PMCSR_STATE_MASK) != state)
pci_conf_write(pc, tag, pmcapreg + 4, state);
}