summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-10-11 21:03:36 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-10-11 21:03:36 +0000
commit7dc45d10f88af4211cf41df1dd2904cb1d9a1e60 (patch)
tree1be1fc30772a1a044c5f6f78e21cd555cb9b9a48 /sys
parent6e67167a388cd82a71a10c9c3728c38e83e44433 (diff)
fix the cmd execution problem from pr#2116; from pvk@tsinet.ru
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/cac_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cac_pci.c b/sys/dev/pci/cac_pci.c
index ec848766c94..ca88b166a14 100644
--- a/sys/dev/pci/cac_pci.c
+++ b/sys/dev/pci/cac_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cac_pci.c,v 1.5 2001/08/25 10:13:29 art Exp $ */
+/* $OpenBSD: cac_pci.c,v 1.6 2001/10/11 21:03:35 mickey Exp $ */
/* $NetBSD: cac_pci.c,v 1.10 2001/01/10 16:48:04 ad Exp $ */
/*-
@@ -274,7 +274,7 @@ int
cac_pci_l0_intr_pending(struct cac_softc *sc)
{
- return (cac_inl(sc, CAC_42REG_STATUS) & CAC_42_EXTINT);
+ return ((cac_inl(sc, CAC_42REG_STATUS) & CAC_42_EXTINT) != 0);
}
void
@@ -288,5 +288,5 @@ int
cac_pci_l0_fifo_full(struct cac_softc *sc)
{
- return (~cac_inl(sc, CAC_42REG_CMD_FIFO));
+ return (cac_inl(sc, CAC_42REG_CMD_FIFO) != 0);
}