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