aboutsummaryrefslogtreecommitdiff
path: root/slirp/cksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/cksum.c')
-rw-r--r--slirp/cksum.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/slirp/cksum.c b/slirp/cksum.c
index c3b45f7b3d..48a1792199 100644
--- a/slirp/cksum.c
+++ b/slirp/cksum.c
@@ -110,7 +110,6 @@ int cksum(struct mbuf *m, int len)
if (byte_swapped) {
REDUCE;
sum <<= 8;
- byte_swapped = 0;
if (mlen == -1) {
s_util.c[1] = *(u_int8_t *)w;
sum += s_util.s;