diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-07 13:45:38 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-07 13:45:38 +0000 |
commit | 7071ff3288880e3785ebac3af44a2ddc7e18d1a9 (patch) | |
tree | d6bf96786d622fa3b24b969d53d36bfabae07a79 /slirp/socket.c | |
parent | 369c86e7889ef7f4c9902e25156d3193d4046a2a (diff) | |
download | qemu-7071ff3288880e3785ebac3af44a2ddc7e18d1a9.zip qemu-7071ff3288880e3785ebac3af44a2ddc7e18d1a9.tar.gz qemu-7071ff3288880e3785ebac3af44a2ddc7e18d1a9.tar.bz2 |
slirp: remove dead initialization, spotted by clang
Value stored during initialization is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp/socket.c')
-rw-r--r-- | slirp/socket.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/slirp/socket.c b/slirp/socket.c index cf6e6a9..8a257ac 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -90,8 +90,6 @@ size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np) DEBUG_CALL("sopreprbuf"); DEBUG_ARG("so = %lx", (long )so); - len = sb->sb_datalen - sb->sb_cc; - if (len <= 0) return 0; @@ -363,8 +361,6 @@ sowrite(struct socket *so) * sowrite wouldn't have been called otherwise */ - len = sb->sb_cc; - iov[0].iov_base = sb->sb_rptr; iov[1].iov_base = NULL; iov[1].iov_len = 0; |