projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
111f2d1
)
aic94xx: set an error code on failure
author
Dan Carpenter
<
[email protected]
>
Tue, 18 Aug 2015 09:20:29 +0000
(12:20 +0300)
committer
James Bottomley
<
[email protected]
>
Thu, 27 Aug 2015 05:41:37 +0000
(22:41 -0700)
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.
Signed-off-by: Dan Carpenter <
[email protected]
>
Reviewed-by: Johannes Thumshirn <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/aic94xx/aic94xx_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/aic94xx/aic94xx_init.c
b/drivers/scsi/aic94xx/aic94xx_init.c
index 4b135cca42a1282c08c43791fab4767374f6b148..31e8576cbaab40ad16998735cee279131533780c 100644
(file)
--- a/
drivers/scsi/aic94xx/aic94xx_init.c
+++ b/
drivers/scsi/aic94xx/aic94xx_init.c
@@
-109,6
+109,7
@@
static int asd_map_memio(struct asd_ha_struct *asd_ha)
if (!io_handle->addr) {
asd_printk("couldn't map MBAR%d of %s\n", i==0?0:1,
pci_name(asd_ha->pcidev));
+ err = -ENOMEM;
goto Err_unreq;
}
}