[PATCH 08/23] USB: gadget: DFU: remove unused code
Sascha Hauer
s.hauer at pengutronix.de
Mon Jul 21 08:14:32 PDT 2014
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/usb/gadget/dfu.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c
index 85d99e9..a685cc1 100644
--- a/drivers/usb/gadget/dfu.c
+++ b/drivers/usb/gadget/dfu.c
@@ -102,17 +102,6 @@ static struct usb_gadget_strings *dfu_strings[] = {
NULL,
};
-static struct usb_interface_descriptor dfu_control_interface_desc = {
- .bLength = USB_DT_INTERFACE_SIZE,
- .bDescriptorType = USB_DT_INTERFACE,
- /* .bInterfaceNumber = DYNAMIC */
- .bNumEndpoints = 0,
- .bInterfaceClass = 0xfe,
- .bInterfaceSubClass = 1,
- .bInterfaceProtocol = 1,
- /* .iInterface = DYNAMIC */
-};
-
static int
dfu_bind(struct usb_configuration *c, struct usb_function *f)
{
@@ -127,8 +116,6 @@ dfu_bind(struct usb_configuration *c, struct usb_function *f)
if (status < 0)
return status;
- dfu_control_interface_desc.bInterfaceNumber = status;
-
header = xzalloc(sizeof(void *) * (dfu_num_alt + 2));
desc = xzalloc(sizeof(struct usb_interface_descriptor) * dfu_num_alt);
for (i = 0; i < dfu_num_alt; i++) {
@@ -576,7 +563,6 @@ static int dfu_bind_config(struct usb_configuration *c)
status = usb_string_id(c->cdev);
if (status < 0)
return status;
- dfu_control_interface_desc.iInterface = status;
/* allocate and initialize one new instance */
dfu = xzalloc(sizeof *dfu);
--
2.0.1
More information about the barebox
mailing list