svn commit: r192097 - head/sys/dev/iir
Christian Brueffer
brueffer at FreeBSD.org
Thu May 14 13:32:35 UTC 2009
Author: brueffer
Date: Thu May 14 13:32:33 2009
New Revision: 192097
URL: http://svn.freebsd.org/changeset/base/192097
Log:
Compare the correct variable against NULL.
Reviewed by: scottl
Found with: Coverity Prevent(tm)
CID: 821
MFC after: 2 weeks
Modified:
head/sys/dev/iir/iir_pci.c
Modified: head/sys/dev/iir/iir_pci.c
==============================================================================
--- head/sys/dev/iir/iir_pci.c Thu May 14 12:39:22 2009 (r192096)
+++ head/sys/dev/iir/iir_pci.c Thu May 14 13:32:33 2009 (r192097)
@@ -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;
More information about the svn-src-head
mailing list