History

aic94xx: set an error code on failure

We recently did some cleanup here and now the static checkers notice that there is a missing error code when ioremap() fails. Let's set it to -ENOMEM.

Dan Carpenter committed 11 years ago

Commit 9f55bca1 parent 111f2d11 file · +1 −0Browse files

Unified · Split

drivers/scsi/aic94xx/aic94xx_init.c+1−0
@@ -109,6 +109,7 @@ static int asd_map_memio(struct asd_ha_struct *asd_ha) · 108 unmodified lines
109109 if (!io_handle->addr) {
110110 asd_printk("couldn't map MBAR%d of %s\n", i==0?0:1,
111111 pci_name(asd_ha->pcidev));
112+ err = -ENOMEM;
112113 goto Err_unreq;
113114 }
114115 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t