From: Mark Cave-Ayland Date: Fri, 12 Jan 2024 12:53:47 +0000 (+0000) Subject: esp.c: always use esp_do_dma() in pdma_cb() X-Git-Tag: v9.0.0-rc0~66^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34e9bb92b521b1d20822a0c7ea3dd9df003934f5;p=thirdparty%2Fqemu.git esp.c: always use esp_do_dma() in pdma_cb() There is now only a single implementation contained within esp_do_dma() so call it directly. Signed-off-by: Mark Cave-Ayland Tested-by: Helge Deller Tested-by: Thomas Huth Message-Id: <20240112125420.514425-56-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland --- diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index c6e5ddd537b..bdbdb209f7e 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi/esp.c @@ -807,13 +807,7 @@ static void esp_do_nodma(ESPState *s) static void esp_pdma_cb(ESPState *s) { - switch (s->pdma_cb) { - case DO_DMA_PDMA_CB: - esp_do_dma(s); - break; - default: - g_assert_not_reached(); - } + esp_do_dma(s); } void esp_command_complete(SCSIRequest *req, size_t resid)