aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-01-12 12:53:03 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2024-02-13 19:37:23 +0000
commit5fd4de76048966bb3b6c768e6ca5008600ea07d4 (patch)
tree1a7a9b3c28f7f7c3aee707074fb0244aefa86fb8
parentf366622366807ce7e11cd74e501620840d8a3cda (diff)
downloadqemu-5fd4de76048966bb3b6c768e6ca5008600ea07d4.zip
qemu-5fd4de76048966bb3b6c768e6ca5008600ea07d4.tar.gz
qemu-5fd4de76048966bb3b6c768e6ca5008600ea07d4.tar.bz2
esp.c: remove unused case from esp_pdma_read()
The do_cmd variable is only set for the MESSAGE OUT and COMMAND phases i.e. those which involve transfers from the host to the SCSI bus, and so the unused case can be removed. 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-12-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--hw/scsi/esp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index 9893840..6191c17 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi/esp.c
@@ -187,12 +187,7 @@ static uint8_t esp_pdma_read(ESPState *s)
{
uint8_t val;
- if (s->do_cmd) {
- val = esp_fifo_pop(&s->cmdfifo);
- } else {
- val = esp_fifo_pop(&s->fifo);
- }
-
+ val = esp_fifo_pop(&s->fifo);
return val;
}