From: Vikas Chaudhary Date: Thu, 7 Oct 2010 05:48:24 +0000 (-0700) Subject: [SCSI] qla4xxx: remove "ha->retry_reset_ha_cnt" from wait_for_hba_online X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=884292ecee7148fb8f6297c85b98c54a61d95a20;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- 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) if (adapter_up(ha)) return QLA_SUCCESS; - else if (ha->retry_reset_ha_cnt == 0) - return QLA_ERROR; msleep(2000); }