mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
usb: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7300c07991
commit
d4c4e6fdc7
7 changed files with 24 additions and 14 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue