target: remove duplicate initialization
Subsystems (2)
PATCH 1/2 target: 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 <[email protected]>
drivers/usb/gadget/tcm_usb_gadget.c +0 -1
@@ -1956,7 +1956,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 ,
Quoted 11 lines · Dan Carpenter
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 <[email protected]>drivers/usb/gadget/tcm_usb_gadget.c +0
-0
drivers/usb/gadget/tcm_usb_gadget.c static void usbg_deregister_configfs(void)
Quoted 8 lines
drivers/usb/gadget/tcm_usb_gadget.c +0
-2@@ -1956,7 +1956,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 , --
Looks fine, applied to target-pending/for-next
Thanks Dan!
--nab