From: Dan Carpenter Date: Tue, 2 Oct 2012 08:27:39 +0000 (+0300) Subject: target/usb-gadget: remove duplicate initialization X-Git-Tag: v3.7-rc1~61^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ecf595bc2bb468f567eaa4ea5ffbf5d2c871b94;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c index 575c824..0f75f23 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) 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,