diff options
author | Vitaly Kuzmichev <vkuzmichev@mvista.com> | 2010-09-13 14:37:11 (GMT) |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-09-20 19:57:17 (GMT) |
commit | 6142e0ae0fcf8bf5a7a8d785061197ace8955cb6 (patch) | |
tree | 0481685eaf9ce2bb8a7964ca0e3321fa67c02b0e /drivers/usb/gadget/config.c | |
parent | a170f2c7973728f2e9e1b66214b0c14062c78398 (diff) | |
download | u-boot-fsl-qoriq-6142e0ae0fcf8bf5a7a8d785061197ace8955cb6.tar.xz |
USB-CDC: Fix coding style issues
Fixes most of checkpatch warnings and errors in USB gadget stack.
The most frequently encountered problems are:
1) "(foo*)", "foo * bar", "foo* bar"
2) C99 // comments
3) No spaces before/after/around '?', ':', '=', '==', ',', '&', '('
4) Spaces before '['
5) Spaces between function names and '('
6) Block braces in wrong places
7) Spaces before tabs
8) Macros with complex values not enclosed in parenthesis
9) Multiline comments start just after /*
Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Diffstat (limited to 'drivers/usb/gadget/config.c')
-rw-r--r-- | drivers/usb/gadget/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index 84c90f0..cf22629 100644 --- a/drivers/usb/gadget/config.c +++ b/drivers/usb/gadget/config.c @@ -101,7 +101,7 @@ int usb_gadget_config_buf( *cp = *config; /* then interface/endpoint/class/vendor/... */ - len = usb_descriptor_fillbuf(USB_DT_CONFIG_SIZE + (u8*)buf, + len = usb_descriptor_fillbuf(USB_DT_CONFIG_SIZE + (u8 *)buf, length - USB_DT_CONFIG_SIZE, desc); if (len < 0) return len; |