]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
aic94xx: set an error code on failure
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Aug 2015 09:20:29 +0000 (12:20 +0300)
committerJames Bottomley <JBottomley@Odin.com>
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 <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/aic94xx/aic94xx_init.c

index 4b135cca42a1282c08c43791fab4767374f6b148..31e8576cbaab40ad16998735cee279131533780c 100644 (file)
@@ -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;
                }
        }