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)
commit9f55bca2b82a77a3cc3204900db2fc40ab30019e
tree8318ff998dc6e31d2ce774181a52e9eabb072815
parent111f2d15b543e15c1e0ee89745fae84e3eb91932
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>
drivers/scsi/aic94xx/aic94xx_init.c