Loading drivers/usb/gadget/configfs.c +8 −1 Original line number Diff line number Diff line Loading @@ -1521,7 +1521,14 @@ static int android_setup(struct usb_gadget *gadget, static void android_disconnect(struct usb_gadget *gadget) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct gadget_info *gi = container_of(cdev, struct gadget_info, cdev); struct gadget_info *gi; if (!cdev) { pr_err("%s: gadget is not connected\n", __func__); return; } gi = container_of(cdev, struct gadget_info, cdev); /* accessory HID support can be active while the accessory function is not actually enabled, Loading Loading
drivers/usb/gadget/configfs.c +8 −1 Original line number Diff line number Diff line Loading @@ -1521,7 +1521,14 @@ static int android_setup(struct usb_gadget *gadget, static void android_disconnect(struct usb_gadget *gadget) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct gadget_info *gi = container_of(cdev, struct gadget_info, cdev); struct gadget_info *gi; if (!cdev) { pr_err("%s: gadget is not connected\n", __func__); return; } gi = container_of(cdev, struct gadget_info, cdev); /* accessory HID support can be active while the accessory function is not actually enabled, Loading