From 1856696cd250314b1415bc4591adb246d6d1cabb Mon Sep 17 00:00:00 2001 From: TC1995 Date: Mon, 13 May 2024 01:02:27 +0200 Subject: [PATCH] Warning fix --- src/scsi/scsi_ncr53c400.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scsi/scsi_ncr53c400.c b/src/scsi/scsi_ncr53c400.c index 6576e79ab..ca4d28ffb 100644 --- a/src/scsi/scsi_ncr53c400.c +++ b/src/scsi/scsi_ncr53c400.c @@ -394,9 +394,8 @@ t130b_in(uint16_t port, void *priv) } static void -ncr53c400_dma_mode_ext(void *priv, void *ext_priv) +ncr53c400_dma_mode_ext(void *priv, UNUSED(void *ext_priv)) { - ncr53c400_t *ncr400 = (ncr53c400_t *) ext_priv; ncr_t *ncr = (ncr_t *) priv; /*When a pseudo-DMA transfer has completed (Send or Initiator Receive), mark it as complete and idle the status*/ @@ -405,8 +404,7 @@ ncr53c400_dma_mode_ext(void *priv, void *ext_priv) ncr->tcr &= ~TCR_LAST_BYTE_SENT; ncr->isr &= ~STATUS_END_OF_DMA; ncr->dma_mode = DMA_IDLE; - } else - ncr53c400_log("Continuing DMA, mode bit=%02x, block loaded=%d, waitcomplete=%d.\n", ncr->mode, ncr400->block_count_loaded, ncr->wait_complete); + } } static void