aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-01-12 12:53:47 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-02-13 19:37:28 +0000
commit34e9bb92b521b1d20822a0c7ea3dd9df003934f5 (patch)
treef246584fc1d96957504a9867511c871936a9aaf2
parent8baa14728b43f6bd61ba7074af166a1c98c3adac (diff)
downloadqemu-34e9bb92b521b1d20822a0c7ea3dd9df003934f5.zip
qemu-34e9bb92b521b1d20822a0c7ea3dd9df003934f5.tar.gz
qemu-34e9bb92b521b1d20822a0c7ea3dd9df003934f5.tar.bz2
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 <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Tested-by: Thomas Huth <thuth@redhat.com> Message-Id: <20240112125420.514425-56-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--hw/scsi/esp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index c6e5ddd..bdbdb20 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)