summaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-10-17 21:12:06 +0000
committerwdenk <wdenk>2004-10-17 21:12:06 +0000
commite86e5a07485bc0f33103004594a28882c028e7af (patch)
treeb3f2496049f2e8f82676372d840bc10bf077de44 /common/usb.c
parent8b74bf31fe57edfc502f94e905977304eac943ca (diff)
downloadu-boot-imx-e86e5a07485bc0f33103004594a28882c028e7af.zip
u-boot-imx-e86e5a07485bc0f33103004594a28882c028e7af.tar.gz
u-boot-imx-e86e5a07485bc0f33103004594a28882c028e7af.tar.bz2
Code cleanup for GCC-3.3.x compilers
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/usb.c b/common/usb.c
index 1bb9438..4136f8d 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -925,7 +925,9 @@ int usb_hub_configure(struct usb_device *dev)
}
descriptor = (struct usb_hub_descriptor *)buffer;
- if (descriptor->bLength > USB_BUFSIZ) {
+ /* silence compiler warning if USB_BUFSIZ is > 256 [= sizeof(char)] */
+ i = descriptor->bLength;
+ if (i > USB_BUFSIZ) {
USB_HUB_PRINTF("usb_hub_configure: failed to get hub descriptor - too long: %d\N",
descriptor->bLength);
return -1;