diff options
author | brueffer <brueffer@FreeBSD.org> | 2009-05-14 13:32:33 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2009-05-14 13:32:33 +0000 |
commit | 3d01a23aa92809ccebaeb94d1e91f41b47f7789e (patch) | |
tree | f474a0fd07367c412d290fa35ab6de57c5ddf848 /sys/dev/iir | |
parent | 09b85b4b322e82fadab69c6cd82cea9408658079 (diff) | |
download | FreeBSD-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.c | 2 |
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; |