summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-12-03 06:46:12 +0000
committerWolfgang Denk <wd@denx.de>2011-12-09 10:37:09 +0100
commite6d55d2d9d0f43ace5e8cbc8de931eeae957e03c (patch)
treeda3a1fac105bcb39056bb15b36ecc2c6f5a21932
parent5fea7756da807ce3fdfb9facc1a623e26b2a33e3 (diff)
downloadu-boot-imx-e6d55d2d9d0f43ace5e8cbc8de931eeae957e03c.zip
u-boot-imx-e6d55d2d9d0f43ace5e8cbc8de931eeae957e03c.tar.gz
u-boot-imx-e6d55d2d9d0f43ace5e8cbc8de931eeae957e03c.tar.bz2
drivers/usb/gadget/ep0.c: Fix GCC 4.6 warning
Fix: ep0.c: In function 'ep0_get_descriptor': ep0.c:187:8: warning: variable 'cp' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Acked-by: Remy Bohmer <linux@bohmer.net> Acked-by: Marek Vasut <marek.vasut@gmail.com>
-rw-r--r--drivers/usb/gadget/ep0.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c
index 2b4ec44..22499d3 100644
--- a/drivers/usb/gadget/ep0.c
+++ b/drivers/usb/gadget/ep0.c
@@ -184,7 +184,6 @@ static int ep0_get_descriptor (struct usb_device_instance *device,
int index)
{
int port = 0; /* XXX compound device */
- char *cp;
/*dbg_ep0(3, "max: %x type: %x index: %x", max, descriptor_type, index); */
@@ -196,7 +195,6 @@ static int ep0_get_descriptor (struct usb_device_instance *device,
/* setup tx urb */
urb->actual_length = 0;
- cp = (char*)urb->buffer;
dbg_ep0 (2, "%s", USBD_DEVICE_DESCRIPTORS (descriptor_type));