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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192097

View file

@ -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;