]> git.hungrycats.org Git - linux/commit
aic94xx: Skip reading user settings if flash is not found
authorHannes Reinecke <hare@suse.de>
Mon, 6 Jul 2015 11:07:58 +0000 (13:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Apr 2017 03:49:17 +0000 (05:49 +0200)
commitba57c28de48eba5223e0a9a528b4a6108ce3872c
tree63c224bf7808246b65e3d297b934be82e6b18005
parent2b5f1e01764ccd2d97b648e7834aa40954085f8b
aic94xx: Skip reading user settings if flash is not found

commit 36dd5acd196574d41de3e81d8264df475bbb7123 upstream.

If no user settings are found it's pointless trying to
read them from flash. So skip that step.
This also fixes a compilation warning about uninitialized variables in
aic94xx.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/aic94xx/aic94xx_sds.c