aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_mmc.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/omap_mmc.c
parenta21493e00952e5d7cd948951f2677b0d0e465ccd (diff)
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/omap_mmc.c')
-rw-r--r--hw/omap_mmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/omap_mmc.c b/hw/omap_mmc.c
index 15cbf06c87..9d167ff535 100644
--- a/hw/omap_mmc.c
+++ b/hw/omap_mmc.c
@@ -559,8 +559,9 @@ static void omap_mmc_cover_cb(void *opaque, int line, int level)
if (!host->cdet_state && level) {
host->status |= 0x0002;
omap_mmc_interrupts_update(host);
- if (host->cdet_wakeup)
- /* TODO: Assert wake-up */;
+ if (host->cdet_wakeup) {
+ /* TODO: Assert wake-up */
+ }
}
if (host->cdet_state != level) {