diff options
author | 2017-08-17 12:21:31 +0000 | |
---|---|---|
committer | 2017-08-17 12:21:31 +0000 | |
commit | 5d4e46a1f12e93e7a19cb74fe5732f9b7f9e2a62 (patch) | |
tree | b77ec5c786a723fa634ec719f5d7fa166cf171a2 | |
parent | Fix logical or. Spotted by Artturi Alm. (diff) | |
download | wireguard-openbsd-5d4e46a1f12e93e7a19cb74fe5732f9b7f9e2a62.tar.xz wireguard-openbsd-5d4e46a1f12e93e7a19cb74fe5732f9b7f9e2a62.zip |
Fix pci product test. Coverity CID 1453251.
ok tom@ mikeb@
-rw-r--r-- | sys/dev/pci/qlw_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/qlw_pci.c b/sys/dev/pci/qlw_pci.c index ef15e7c81df..47d9c66402e 100644 --- a/sys/dev/pci/qlw_pci.c +++ b/sys/dev/pci/qlw_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qlw_pci.c,v 1.9 2014/03/15 13:08:52 kettenis Exp $ */ +/* $OpenBSD: qlw_pci.c,v 1.10 2017/08/17 12:21:31 jsg Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -87,7 +87,7 @@ qlw_pci_match(struct device *parent, void *match, void *aux) struct pci_attach_args *pa = aux; /* Silly AMI MegaRAID exposes its ISP12160 to us. */ - if (PCI_PRODUCT(pa->pa_id == PCI_PRODUCT_QLOGIC_ISP12160)) { + if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_QLOGIC_ISP12160) { pcireg_t subid; subid = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBVEND_0); |