From: Soumyajyotii Ssarkar <[email protected]> Simplify disconnect instruction by unconditionally clearing waiting statements when command completes.
Signed-off-by: Soumyajyotii Ssarkar <[email protected]> Tested-by: Helge Deller <[email protected]> Signed-off-by: Helge Deller <[email protected]> --- hw/scsi/ncr53c710.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c index 277aa2c3d3..dd453991e0 100644 --- a/hw/scsi/ncr53c710.c +++ b/hw/scsi/ncr53c710.c @@ -1469,9 +1469,7 @@ again: if (s->command_complete != NCR710_CMD_PENDING) { s->scntl1 &= ~NCR710_SCNTL1_CON; s->istat &= ~NCR710_ISTAT_CON; - if (s->waiting == NCR710_WAIT_RESELECT) { - s->waiting = NCR710_WAIT_NONE; - } + s->waiting = NCR710_WAIT_NONE; } else { if (s->current) { s->current->resume_offset = s->dsp; -- 2.52.0
