mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
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:
parent
54d83191b0
commit
3af3ff479b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192097
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue