[SCSI] qla4xxx: honor return status of qla4xxx_hw_reset
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: Ravi Anand <ravi.anand@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
f581a3f79c
commit
f931c5343f
|
@ -935,11 +935,14 @@ int qla4xxx_soft_reset(struct scsi_qla_host *ha)
|
||||||
{
|
{
|
||||||
uint32_t max_wait_time;
|
uint32_t max_wait_time;
|
||||||
unsigned long flags = 0;
|
unsigned long flags = 0;
|
||||||
int status = QLA_ERROR;
|
int status;
|
||||||
uint32_t ctrl_status;
|
uint32_t ctrl_status;
|
||||||
|
|
||||||
qla4xxx_hw_reset(ha);
|
status = qla4xxx_hw_reset(ha);
|
||||||
|
if (status != QLA_SUCCESS)
|
||||||
|
return status;
|
||||||
|
|
||||||
|
status = QLA_ERROR;
|
||||||
/* Wait until the Network Reset Intr bit is cleared */
|
/* Wait until the Network Reset Intr bit is cleared */
|
||||||
max_wait_time = RESET_INTR_TOV;
|
max_wait_time = RESET_INTR_TOV;
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in a new issue