[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] hw/omap_dma: add matching {} in if 0
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH 2/2] hw/omap_dma: add matching {} in if 0 |
Date: |
Thu, 1 Oct 2009 07:51:44 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
MULTI_REQ is never defined, so it doesn't matter much, but since we have
an if statement there, let's add {} to clarify what it should do if it's
uncommented.
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
hw/omap_dma.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/omap_dma.c b/hw/omap_dma.c
index 205d010..ab5e925 100644
--- a/hw/omap_dma.c
+++ b/hw/omap_dma.c
@@ -588,7 +588,7 @@ static void omap_dma_transfer_setup(struct soc_dma_ch_s
*dma)
#ifdef MULTI_REQ
/* TODO: should all of this only be done if dma->update, and otherwise
* inside omap_dma_transfer_generic below - check what's faster. */
- if (dma->update)
+ if (dma->update) {
#endif
/* If the channel is element synchronized, deactivate it */
@@ -670,6 +670,8 @@ static void omap_dma_transfer_setup(struct soc_dma_ch_s
*dma)
* bits on it. */
#ifndef MULTI_REQ
}
+#else
+ }
#endif
omap_dma_interrupts_update(s);
--
1.6.5.rc2
- [Qemu-devel] [PATCH 2/2] hw/omap_dma: add matching {} in if 0,
Michael S. Tsirkin <=