diff options
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index b24bf969b8a9..6e59b59602a1 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -935,11 +935,14 @@ int qla4xxx_soft_reset(struct scsi_qla_host *ha) | |||
935 | { | 935 | { |
936 | uint32_t max_wait_time; | 936 | uint32_t max_wait_time; |
937 | unsigned long flags = 0; | 937 | unsigned long flags = 0; |
938 | int status = QLA_ERROR; | 938 | int status; |
939 | uint32_t ctrl_status; | 939 | uint32_t ctrl_status; |
940 | 940 | ||
941 | qla4xxx_hw_reset(ha); | 941 | status = qla4xxx_hw_reset(ha); |
942 | if (status != QLA_SUCCESS) | ||
943 | return status; | ||
942 | 944 | ||
945 | status = QLA_ERROR; | ||
943 | /* Wait until the Network Reset Intr bit is cleared */ | 946 | /* Wait until the Network Reset Intr bit is cleared */ |
944 | max_wait_time = RESET_INTR_TOV; | 947 | max_wait_time = RESET_INTR_TOV; |
945 | do { | 948 | do { |