Revision d4c4e6fd hw/usb-net.c

b/hw/usb-net.c
972 972

  
973 973
static int rndis_parse(USBNetState *s, uint8_t *data, int length)
974 974
{
975
    uint32_t msg_type, msg_length;
975
    uint32_t msg_type;
976 976
    le32 *tmp = (le32 *) data;
977 977

  
978
    msg_type = le32_to_cpup(tmp++);
979
    msg_length = le32_to_cpup(tmp++);
978
    msg_type = le32_to_cpup(tmp);
980 979

  
981 980
    switch (msg_type) {
982 981
    case RNDIS_INITIALIZE_MSG:

Also available in: Unified diff