diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-23 19:22:12 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-23 19:22:12 +0000 |
commit | 6e60d8d014ffb1c217cc151fa2b3e35a2e2d8e86 (patch) | |
tree | ef1d4569dc60bb354fa33cfe90bc3246ad9e2486 | |
parent | 7b30b78c0ffc61508d85a4e5ce401a7f28e18874 (diff) | |
download | qemu-6e60d8d014ffb1c217cc151fa2b3e35a2e2d8e86.tar.gz qemu-6e60d8d014ffb1c217cc151fa2b3e35a2e2d8e86.tar.bz2 qemu-6e60d8d014ffb1c217cc151fa2b3e35a2e2d8e86.zip |
Fix harmless if statement with empty body, spotted by clang
This clang error is harmless but worth fixing:
CC libhw32/rc4030.o
/src/qemu/hw/rc4030.c:244:66: error: if statement has empty body [-Wempty-body]
DPRINTF("read 0x%02x at " TARGET_FMT_plx "\n", val, addr);
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/rc4030.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/rc4030.c b/hw/rc4030.c index c2b2a3eb56..2a8233ab9d 100644 --- a/hw/rc4030.c +++ b/hw/rc4030.c @@ -240,8 +240,9 @@ static uint32_t rc4030_readl(void *opaque, target_phys_addr_t addr) break; } - if ((addr & ~3) != 0x230) + if ((addr & ~3) != 0x230) { DPRINTF("read 0x%02x at " TARGET_FMT_plx "\n", val, addr); + } return val; } |