aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-08-18 05:20:29 -0400
committerJames Bottomley <JBottomley@Odin.com>2015-08-27 01:41:37 -0400
commit9f55bca2b82a77a3cc3204900db2fc40ab30019e (patch)
tree8318ff998dc6e31d2ce774181a52e9eabb072815
parent111f2d15b543e15c1e0ee89745fae84e3eb91932 (diff)
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. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
-rw-r--r--drivers/scsi/aic94xx/aic94xx_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c
index 4b135cca42a1..31e8576cbaab 100644
--- 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)
109 if (!io_handle->addr) { 109 if (!io_handle->addr) {
110 asd_printk("couldn't map MBAR%d of %s\n", i==0?0:1, 110 asd_printk("couldn't map MBAR%d of %s\n", i==0?0:1,
111 pci_name(asd_ha->pcidev)); 111 pci_name(asd_ha->pcidev));
112 err = -ENOMEM;
112 goto Err_unreq; 113 goto Err_unreq;
113 } 114 }
114 } 115 }