fixed swapw() usage

This commit is contained in:
Markus Fröschle
2013-11-03 08:44:23 +00:00
parent 6b0dcee284
commit 4ef1bec938

View File

@@ -463,7 +463,7 @@ int usb_parse_config(struct usb_device *dev, unsigned char *buffer, int cfgno)
return -1;
}
memcpy(&dev->config, buffer, buffer[0]);
swpw(&(dev->config.wTotalLength));
dev->config.wTotalLength = swpw(dev->config.wTotalLength);
dev->config.no_of_if = 0;
index = dev->config.bLength;
/* Ok the first entry must be a configuration entry,