summaryrefslogtreecommitdiffstats
path: root/hw/scsi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-11-10 13:58:14 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-10 13:58:14 +0100
commit25aaa2c568a11bd79b7b83c857278232f6fa7be6 (patch)
tree6b4dbb5ac88effa7b22e1015b9af8213cc4547ca /hw/scsi
parent55783a5521a3b1f93ee6a072e414a27c6cfa15f0 (diff)
downloadhqemu-25aaa2c568a11bd79b7b83c857278232f6fa7be6.zip
hqemu-25aaa2c568a11bd79b7b83c857278232f6fa7be6.tar.gz
esp: fix coding standards
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/esp-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
index 77b8647..00b7297 100644
--- a/hw/scsi/esp-pci.c
+++ b/hw/scsi/esp-pci.c
@@ -268,8 +268,9 @@ static void esp_pci_dma_memory_rw(PCIESPState *pci, uint8_t *buf, int len,
/* update status registers */
pci->dma_regs[DMA_WBC] -= len;
pci->dma_regs[DMA_WAC] += len;
- if (pci->dma_regs[DMA_WBC] == 0)
+ if (pci->dma_regs[DMA_WBC] == 0) {
pci->dma_regs[DMA_STAT] |= DMA_STAT_DONE;
+ }
}
static void esp_pci_dma_memory_read(void *opaque, uint8_t *buf, int len)
OpenPOWER on IntegriCloud