aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2010-10-07 01:48:24 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-25 15:49:13 -0400
commit884292ecee7148fb8f6297c85b98c54a61d95a20 (patch)
tree9655c8d070b7d83e17de71edfb63f6a591bef3c6
parentf931c5343f4a500552a3b223b1f840e802d5e1e6 (diff)
[SCSI] qla4xxx: remove "ha->retry_reset_ha_cnt" from wait_for_hba_online
remove "ha->retry_reset_ha_cnt" from wait_for_hba_online as its initialize to zero at driver init time so it could always return QLA_ERROR from wait_for_hba_online() without waiting for hba to come online. 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>
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 6e59b59602a1..56962e52f112 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -1966,8 +1966,6 @@ static int qla4xxx_wait_for_hba_online(struct scsi_qla_host *ha)
1966 1966
1967 if (adapter_up(ha)) 1967 if (adapter_up(ha))
1968 return QLA_SUCCESS; 1968 return QLA_SUCCESS;
1969 else if (ha->retry_reset_ha_cnt == 0)
1970 return QLA_ERROR;
1971 1969
1972 msleep(2000); 1970 msleep(2000);
1973 } 1971 }