aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-net.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:23:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:23:04 +0000
commitd4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 (patch)
tree30a0e68d4a839c12488f2e234a9cb8cb4e2aaa62 /hw/usb-net.c
parent7300c07991e05e66e04528aa1c72e31c127a79cd (diff)
downloadqemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.zip
qemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.tar.gz
qemu-d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5.tar.bz2
usb: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/usb-net.c')
-rw-r--r--hw/usb-net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c
index ff0ca44..a43bd17 100644
--- a/hw/usb-net.c
+++ b/hw/usb-net.c
@@ -972,11 +972,10 @@ static int rndis_keepalive_response(USBNetState *s,
static int rndis_parse(USBNetState *s, uint8_t *data, int length)
{
- uint32_t msg_type, msg_length;
+ uint32_t msg_type;
le32 *tmp = (le32 *) data;
- msg_type = le32_to_cpup(tmp++);
- msg_length = le32_to_cpup(tmp++);
+ msg_type = le32_to_cpup(tmp);
switch (msg_type) {
case RNDIS_INITIALIZE_MSG: