net: Drop unusual use of do { } while (0);
commit1b4c0a0436f8741ad19e03a5822d1c546dfceecc
authorEric Blake <eblake@redhat.com>
Fri, 1 Dec 2017 23:24:27 +0000 (1 17:24 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jan 2018 13:54:51 +0000 (16 14:54 +0100)
tree710fc429e74d4a7ceb82af5fbc2ff93bb69e9be8
parent01960e6d21dcfbfc8a03d8fd6284c448cf75865b
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>
hw/net/pcnet.c