diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-17 12:21:32 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-08-17 12:21:32 +0000 |
commit | a9f746016e90aba47281f3d5de7a37db833676fe (patch) | |
tree | b5198eff0f8622fd47e6c148f7a4f1300211e6a1 /sys/dev | |
parent | e0ecc802e1f6c3b3cea0d0c5fe37811c79df0cd0 (diff) |
Fix pci product test. Coverity CID 1453251.
ok tom@ mikeb@
Diffstat (limited to 'sys/dev')
-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); |