Procházet zdrojové kódy

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>
Dan Carpenter před 13 roky
rodič
revize
8ecf595bc2
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  1. 0 1
      drivers/usb/gadget/tcm_usb_gadget.c

+ 0 - 1
drivers/usb/gadget/tcm_usb_gadget.c

@@ -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,