Commit b7bf5219 authored by Michel Dänzer's avatar Michel Dänzer Committed by Greg Kroah-Hartman

[PATCH] USB: linuxppc-2.5 fixlets for usbtest.c

fix drivers/usb/misc/usbtest.c:438: warning: passing arg 1 of
`__swab32s' from incompatible pointer type by using le16_to_cpus instead
of le32_to_cpus .
parent dfc9a24f
......@@ -435,7 +435,7 @@ static int is_good_config (char *buf, int len)
return 0;
}
le32_to_cpus (&config->wTotalLength);
le16_to_cpus (&config->wTotalLength);
if (config->wTotalLength == len) /* read it all */
return 1;
return config->wTotalLength >= TBUF_SIZE; /* max partial read */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment