From 4ef1bec9385c15bcf599de26f190ca314d89b3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 3 Nov 2013 08:44:23 +0000 Subject: [PATCH] fixed swapw() usage --- sources/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/usb.c b/sources/usb.c index aefdd37..9b5049a 100644 --- a/sources/usb.c +++ b/sources/usb.c @@ -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,