summary refs log tree commit diff stats
path: root/hw/soc_dma.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-09-18 07:01:48 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-09-18 07:01:48 +0000
commit3ffd710e12ce64478abc027e92fe94e1089ac91c (patch)
treeac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/soc_dma.c
parenta21493e00952e5d7cd948951f2677b0d0e465ccd (diff)
downloadfocaccia-qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz
focaccia-qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.zip
Use gcc warning flag -Wempty-body
If the compiler supports the warning flag -Wempty-body, use it.

Adjust the code to avoid the warnings.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/soc_dma.c')
-rw-r--r--hw/soc_dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/soc_dma.c b/hw/soc_dma.c
index e116e6373a..23ec51695a 100644
--- a/hw/soc_dma.c
+++ b/hw/soc_dma.c
@@ -192,12 +192,13 @@ static void soc_dma_ch_freq_update(struct dma_s *s)
     if (s->enabled_count)
         /* We completely ignore channel priorities and stuff */
         s->channel_freq = s->soc.freq / s->enabled_count;
-    else
+    else {
         /* TODO: Signal that we want to disable the functional clock and let
          * the platform code decide what to do with it, i.e. check that
          * auto-idle is enabled in the clock controller and if we are stopping
          * the clock, do the same with any parent clocks that had only one
-         * user keeping them on and auto-idle enabled.  */;
+         * user keeping them on and auto-idle enabled.  */
+    }
 }
 
 void soc_dma_set_request(struct soc_dma_ch_s *ch, int level)