projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7071ff3
)
slirp: remove dead nested assignment, 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)
Although the value stored to 'r' is used in the enclosing expression,
the value is never actually read from 'r'.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/slirp.c
patch
|
blob
|
history
diff --git
a/slirp/slirp.c
b/slirp/slirp.c
index 6731f529f6942d8871acfd10013e4c40bed6ce53..3c785cd6432fd6ab63e87141df6d2e2841cbdab5 100644
(file)
--- a/
slirp/slirp.c
+++ b/
slirp/slirp.c
@@
-1069,9
+1069,8
@@
static int slirp_state_load(QEMUFile *f, void *opaque, int version_id)
{
Slirp *slirp = opaque;
struct ex_list *ex_ptr;
- int r;
- while (
(r = qemu_get_byte(f)
)) {
+ while (
qemu_get_byte(f
)) {
int ret;
struct socket *so = socreate(slirp);