Compare the correct variable against NULL.

Reviewed by:	scottl
Found with:	Coverity Prevent(tm)
CID:		821
MFC after:	2 weeks
This commit is contained in:
Christian Brueffer 2009-05-14 13:32:33 +00:00
parent 54d83191b0
commit 3af3ff479b

View File

@ -202,7 +202,7 @@ iir_pci_attach(device_t dev)
rid = 0; rid = 0;
irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_ACTIVE | RF_SHAREABLE); RF_ACTIVE | RF_SHAREABLE);
if (io == NULL) { if (irq == NULL) {
device_printf(dev, "can't find IRQ value\n"); device_printf(dev, "can't find IRQ value\n");
error = ENOMEM; error = ENOMEM;
goto err; goto err;