summaryrefslogtreecommitdiffstats
path: root/sys/dev/iir
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2009-05-14 13:32:33 +0000
committerbrueffer <brueffer@FreeBSD.org>2009-05-14 13:32:33 +0000
commit3d01a23aa92809ccebaeb94d1e91f41b47f7789e (patch)
treef474a0fd07367c412d290fa35ab6de57c5ddf848 /sys/dev/iir
parent09b85b4b322e82fadab69c6cd82cea9408658079 (diff)
downloadFreeBSD-src-3d01a23aa92809ccebaeb94d1e91f41b47f7789e.zip
FreeBSD-src-3d01a23aa92809ccebaeb94d1e91f41b47f7789e.tar.gz
Compare the correct variable against NULL.
Reviewed by: scottl Found with: Coverity Prevent(tm) CID: 821 MFC after: 2 weeks
Diffstat (limited to 'sys/dev/iir')
-rw-r--r--sys/dev/iir/iir_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iir/iir_pci.c b/sys/dev/iir/iir_pci.c
index 528b7d7..c75f084 100644
--- a/sys/dev/iir/iir_pci.c
+++ b/sys/dev/iir/iir_pci.c
@@ -202,7 +202,7 @@ iir_pci_attach(device_t dev)
rid = 0;
irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_ACTIVE | RF_SHAREABLE);
- if (io == NULL) {
+ if (irq == NULL) {
device_printf(dev, "can't find IRQ value\n");
error = ENOMEM;
goto err;
OpenPOWER on IntegriCloud