diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-17 12:28:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-17 12:28:35 +0000 |
commit | a68171c816f347bcb919ae5832cd9d79b0b2b26b (patch) | |
tree | e8ee62f3bee7245f6528d7a028e0df184e1af207 /sys/dev/pci | |
parent | a9f746016e90aba47281f3d5de7a37db833676fe (diff) |
Fix asic test. Coverity CID 990792.
ok mpi@ tom@ mikeb@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 8d071130cc8..41dfdfb3c17 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.385 2017/02/13 00:56:32 dlg Exp $ */ +/* $OpenBSD: if_bge.c,v 1.386 2017/08/17 12:28:34 jsg Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -3259,7 +3259,7 @@ bge_reset(struct bge_softc *sc) reset = BGE_MISCCFG_RESET_CORE_CLOCKS | BGE_32BITTIME_66MHZ; if (sc->bge_flags & BGE_PCIE) { - if (BGE_ASICREV(sc->bge_chipid != BGE_ASICREV_BCM5785) && + if (BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5785 && !BGE_IS_5717_PLUS(sc)) { if (CSR_READ_4(sc, 0x7e2c) == 0x60) { /* PCI Express 1.0 system */ |