diff options
author | Blue Swirl | 2010-09-18 09:01:48 +0200 |
---|---|---|
committer | Blue Swirl | 2010-09-18 09:01:48 +0200 |
commit | 3ffd710e12ce64478abc027e92fe94e1089ac91c (patch) | |
tree | ac9c7acb10abd4ecee917c2ed7b1f770f8126963 /hw/soc_dma.c | |
parent | Use a few more gcc warning flags (diff) | |
download | qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.gz qemu-3ffd710e12ce64478abc027e92fe94e1089ac91c.tar.xz 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.c | 5 |
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) |