aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
commit1a3efc36ae7cd2a1c05e7d1edd42bc18967a56e8 (patch)
tree90d4a704df4fb5d5f7e238c5397584cd35577a32
parentae1e6b3a8ef4e11e8c34e73721b6d9dfb891e103 (diff)
downloadslirp-1a3efc36ae7cd2a1c05e7d1edd42bc18967a56e8.zip
slirp-1a3efc36ae7cd2a1c05e7d1edd42bc18967a56e8.tar.gz
slirp-1a3efc36ae7cd2a1c05e7d1edd42bc18967a56e8.tar.bz2
Remove dead assignments in various common files, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--cksum.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cksum.c b/cksum.c
index c50cfea..195b49d 100644
--- a/cksum.c
+++ b/cksum.c
@@ -129,7 +129,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;