mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
GCC4.6: Squash warnings in common/usb.c
usb.c: In function ‘usb_parse_config’: usb.c:331:17: warning: variable ‘ch’ set but not used [-Wunused-but-set-variable] usb.c: In function ‘usb_hub_port_connect_change’: usb.c:1123:29: warning: variable ‘portchange’ set but not used [-Wunused-but-set-variable] usb.c: In function ‘usb_hub_configure’: usb.c:1183:25: warning: variable ‘hubsts’ set but not used [-Wunused-but-set-variable] Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
25a8c4f597
commit
88ec8c1246
1 changed files with 7 additions and 14 deletions
21
common/usb.c
21
common/usb.c
|
@ -56,15 +56,15 @@
|
|||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define USB_DEBUG
|
||||
#define USB_HUB_DEBUG
|
||||
#define USB_DEBUG 1
|
||||
#define USB_HUB_DEBUG 1
|
||||
#else
|
||||
#define USB_DEBUG 0
|
||||
#define USB_HUB_DEBUG 0
|
||||
#endif
|
||||
|
||||
#ifdef USB_DEBUG
|
||||
#define USB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
#else
|
||||
#define USB_PRINTF(fmt, args...)
|
||||
#endif
|
||||
#define USB_PRINTF(fmt, args...) debug_cond(USB_DEBUG, fmt, ##args)
|
||||
#define USB_HUB_PRINTF(fmt, args...) debug_cond(USB_HUB_DEBUG, fmt, ##args)
|
||||
|
||||
#define USB_BUFSIZ 512
|
||||
|
||||
|
@ -968,13 +968,6 @@ void usb_scan_devices(void)
|
|||
* Probes device for being a hub and configurate it
|
||||
*/
|
||||
|
||||
#ifdef USB_HUB_DEBUG
|
||||
#define USB_HUB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
#else
|
||||
#define USB_HUB_PRINTF(fmt, args...)
|
||||
#endif
|
||||
|
||||
|
||||
static struct usb_hub_device hub_dev[USB_MAX_HUB];
|
||||
static int usb_hub_index;
|
||||
|
||||
|
|
Loading…
Reference in a new issue