Commit 1a89696e authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: gadget config buf utilities

Somehow I sent you a version of this code with a misplaced
semicolon ... it makes for awkward failures!

Please merge.  Bad semicolon!
parent 10443b9f
...@@ -52,7 +52,7 @@ usb_descriptor_fillbuf(void *buf, unsigned buflen, ...@@ -52,7 +52,7 @@ usb_descriptor_fillbuf(void *buf, unsigned buflen,
for (; 0 != *src; src++) { for (; 0 != *src; src++) {
unsigned len = (*src)->bLength; unsigned len = (*src)->bLength;
if (len > buflen); if (len > buflen)
return -EINVAL; return -EINVAL;
memcpy(dest, *src, len); memcpy(dest, *src, len);
buflen -= len; buflen -= len;
......
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