[SCSI] qla2xxx: Reset seconds_since_last_heartbeat correctly.

The seconds_since_last_heartbeat should be checked for consecutive
heartbeat checks. Currently it could happen that seconds_since_last_heartbeat
gets set to max (2 seconds) for non-consecutive heartbeat checks.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by Lalit Chandivade and committed by James Bottomley efa786cc 970ee0c5

+2 -1
+2 -1
drivers/scsi/qla2xxx/qla_nx.c
··· 3316 3316 complete(&ha->mbx_intr_comp); 3317 3317 } 3318 3318 } 3319 - } 3319 + } else 3320 + vha->seconds_since_last_heartbeat = 0; 3320 3321 vha->fw_heartbeat_counter = fw_heartbeat_counter; 3321 3322 } 3322 3323