Removed a useless if block from the XTA code.

This commit is contained in:
OBattler
2020-01-15 00:19:47 +01:00
parent 11097eb621
commit 2058c12e03

View File

@@ -625,12 +625,6 @@ do_send:
} }
break; break;
#if 0
case CMD_WRITE_VERIFY:
no_data = 1;
/*FALLTHROUGH*/
#endif
case CMD_WRITE_SECTORS: case CMD_WRITE_SECTORS:
if (! drive->present) { if (! drive->present) {
dev->comp |= COMP_ERR; dev->comp |= COMP_ERR;
@@ -663,19 +657,14 @@ do_recv:
/* Ready to transfer the data in. */ /* Ready to transfer the data in. */
dev->state = STATE_RDATA; dev->state = STATE_RDATA;
dev->buf_idx = 0; dev->buf_idx = 0;
if (no_data) { if (dev->intr & DMA_ENA) {
/* Delay a bit, no actual transfer. */ /* DMA enabled. */
dev->buf_ptr = dev->sector_buf;
xta_set_callback(dev, HDC_TIME); xta_set_callback(dev, HDC_TIME);
} else { } else {
if (dev->intr & DMA_ENA) { /* No DMA, do PIO. */
/* DMA enabled. */ dev->buf_ptr = dev->data;
dev->buf_ptr = dev->sector_buf; dev->status |= STAT_REQ;
xta_set_callback(dev, HDC_TIME);
} else {
/* No DMA, do PIO. */
dev->buf_ptr = dev->data;
dev->status |= STAT_REQ;
}
} }
break; break;