summaryrefslogtreecommitdiffstats
path: root/hw/misc/mmio_interface.c
diff options
context:
space:
mode:
authorEric Blake2017-12-02 00:24:27 +0100
committerPaolo Bonzini2018-01-16 14:54:51 +0100
commit1b4c0a0436f8741ad19e03a5822d1c546dfceecc (patch)
tree710fc429e74d4a7ceb82af5fbc2ff93bb69e9be8 /hw/misc/mmio_interface.c
parentirq: fix memory leak (diff)
downloadqemu-1b4c0a0436f8741ad19e03a5822d1c546dfceecc.tar.gz
qemu-1b4c0a0436f8741ad19e03a5822d1c546dfceecc.tar.xz
qemu-1b4c0a0436f8741ad19e03a5822d1c546dfceecc.zip
net: Drop unusual use of do { } while (0);
For a couple of macros in pcnet.c, we have to provide a new scope to avoid compiler warnings about declarations in the middle of a switch statement that aren't in a sub-scope. But use of 'do { ... } while (0);' merely to provide that new scope is arcane overkill, compared to just using '{ ... }'. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20171201232433.25193-2-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/mmio_interface.c')
0 files changed, 0 insertions, 0 deletions