diff options
-rw-r--r-- | sys/dev/pci/cac_pci.c | 6 |
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); } |