aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-10-02 04:27:39 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-10-02 17:16:20 -0400
commit8ecf595bc2bb468f567eaa4ea5ffbf5d2c871b94 (patch)
tree0e61142eede534945c5a8d7f36ac699bf789cf3e /drivers/usb/gadget
parent9f0abc1554cfedf2f2391f6ee54ae319441cd1b9 (diff)
target/usb-gadget: remove duplicate initialization
We set bAlternateSetting to zero twice. I kept the second one (.bAlternateSetting = USB_G_ALT_INT_BBB) because that's more descriptive. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/tcm_usb_gadget.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c
index 575c82437e4a..0f75f23ef661 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/tcm_usb_gadget.c
@@ -1959,7 +1959,6 @@ static void usbg_deregister_configfs(void)
1959static struct usb_interface_descriptor bot_intf_desc = { 1959static struct usb_interface_descriptor bot_intf_desc = {
1960 .bLength = sizeof(bot_intf_desc), 1960 .bLength = sizeof(bot_intf_desc),
1961 .bDescriptorType = USB_DT_INTERFACE, 1961 .bDescriptorType = USB_DT_INTERFACE,
1962 .bAlternateSetting = 0,
1963 .bNumEndpoints = 2, 1962 .bNumEndpoints = 2,
1964 .bAlternateSetting = USB_G_ALT_INT_BBB, 1963 .bAlternateSetting = USB_G_ALT_INT_BBB,
1965 .bInterfaceClass = USB_CLASS_MASS_STORAGE, 1964 .bInterfaceClass = USB_CLASS_MASS_STORAGE,