summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStefan Weil2013-07-25 18:21:28 +0200
committerMichael Tokarev2013-07-27 09:22:54 +0200
commitdfc6f86567c58bc4dd02f4db098fc4c2221e85b5 (patch)
treed493db0a108de25c7d2afaab885ec2d39ffe2c74 /net
parentqemu-options: mention C-a h in the -nographic doc (diff)
downloadqemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.tar.gz
qemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.tar.xz
qemu-dfc6f86567c58bc4dd02f4db098fc4c2221e85b5.zip
misc: Use g_assert_not_reached for code which is expected to be unreachable
The macro g_assert_not_reached is a better self documenting replacement for assert(0) or assert(false). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'net')
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index 1d7494d5e5..7c61132cbb 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -73,7 +73,7 @@ eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto)
}
/* Unsupported offload */
- assert(false);
+ g_assert_not_reached();
return VIRTIO_NET_HDR_GSO_NONE | ecn_state;
}