]> Pileus Git - ~andy/linux/commitdiff
target/usb-gadget: remove duplicate initialization
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Oct 2012 08:27:39 +0000 (11:27 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Oct 2012 21:16:20 +0000 (14:16 -0700)
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>
drivers/usb/gadget/tcm_usb_gadget.c

index 575c82437e4aea2e9352a668d22d5afc5921ade3..0f75f23ef6619899913dedf4648b4b88490f63ba 100644 (file)
@@ -1959,7 +1959,6 @@ static void usbg_deregister_configfs(void)
 static struct usb_interface_descriptor bot_intf_desc = {
        .bLength =              sizeof(bot_intf_desc),
        .bDescriptorType =      USB_DT_INTERFACE,
-       .bAlternateSetting =    0,
        .bNumEndpoints =        2,
        .bAlternateSetting =    USB_G_ALT_INT_BBB,
        .bInterfaceClass =      USB_CLASS_MASS_STORAGE,