forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/usb/gadget/legacy/acm_ms.c
....@@ -105,15 +105,12 @@
105105 */
106106 static int acm_ms_do_config(struct usb_configuration *c)
107107 {
108
- struct fsg_opts *opts;
109108 int status;
110109
111110 if (gadget_is_otg(c->cdev->gadget)) {
112111 c->descriptors = otg_desc;
113112 c->bmAttributes |= USB_CONFIG_ATT_WAKEUP;
114113 }
115
-
116
- opts = fsg_opts_from_func_inst(fi_msg);
117114
118115 f_acm = usb_get_function(f_acm_inst);
119116 if (IS_ERR(f_acm))