projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369c86e
)
slirp: remove dead initialization, spotted by clang
author
Blue Swirl
<blauwirbel@gmail.com>
Sun, 7 Mar 2010 13:45:38 +0000
(13:45 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 7 Mar 2010 13:45:38 +0000
(13:45 +0000)
Value stored during initialization is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/socket.c
patch
|
blob
|
history
diff --git
a/slirp/socket.c
b/slirp/socket.c
index cf6e6a95762b525df14be04dd393d148f9f975fe..8a257acc83f82fa6ac87df98060712ba58c09bdb 100644
(file)
--- 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;