mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
slirp: remove dead increments, spotted by clang
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
aca9fcd28e
commit
369c86e788
3 changed files with 4 additions and 2 deletions
|
@ -293,7 +293,7 @@ static void bootp_reply(Slirp *slirp, const struct bootp_t *bp)
|
|||
memcpy(q, nak_msg, sizeof(nak_msg) - 1);
|
||||
q += sizeof(nak_msg) - 1;
|
||||
}
|
||||
*q++ = RFC1533_END;
|
||||
*q = RFC1533_END;
|
||||
|
||||
daddr.sin_addr.s_addr = 0xffffffffu;
|
||||
|
||||
|
|
|
@ -68,7 +68,9 @@ int cksum(struct mbuf *m, int len)
|
|||
|
||||
if (len < mlen)
|
||||
mlen = len;
|
||||
#ifdef DEBUG
|
||||
len -= mlen;
|
||||
#endif
|
||||
/*
|
||||
* Force to even boundary.
|
||||
*/
|
||||
|
|
|
@ -857,7 +857,7 @@ tcp_emu(struct socket *so, struct mbuf *m)
|
|||
if (p == 7071)
|
||||
p = 0;
|
||||
*(u_char *)bptr++ = (p >> 8) & 0xff;
|
||||
*(u_char *)bptr++ = p & 0xff;
|
||||
*(u_char *)bptr = p & 0xff;
|
||||
ra = 0;
|
||||
return 1; /* port redirected, we're done */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue