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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:47 +0000 (13:34 +0000)
commita34f9767d4773489538b34af5f1265bba6388141
tree5b3340422dcdc032ea958e2428f194ed5a559076
parentf7f4036a240e26e7444245293d7b6b46d0b04978
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/aic94xx/aic94xx_sds.c