mirror of https://gitee.com/openkylin/qemu.git
esp: fix coding standards
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
55783a5521
commit
25aaa2c568
|
@ -268,8 +268,9 @@ static void esp_pci_dma_memory_rw(PCIESPState *pci, uint8_t *buf, int len,
|
||||||
/* update status registers */
|
/* update status registers */
|
||||||
pci->dma_regs[DMA_WBC] -= len;
|
pci->dma_regs[DMA_WBC] -= len;
|
||||||
pci->dma_regs[DMA_WAC] += 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;
|
pci->dma_regs[DMA_STAT] |= DMA_STAT_DONE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void esp_pci_dma_memory_read(void *opaque, uint8_t *buf, int len)
|
static void esp_pci_dma_memory_read(void *opaque, uint8_t *buf, int len)
|
||||||
|
|
Loading…
Reference in New Issue