Commit 29234e3b authored by zhengbin's avatar zhengbin Committed by Greg Kroah-Hartman

usb: gadget: Remove set but not used variable 'opts' in acm_ms_do_config

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/gadget/legacy/acm_ms.c: In function acm_ms_do_config:
drivers/usb/gadget/legacy/acm_ms.c:108:19: warning: variable opts set but not used [-Wunused-but-set-variable]

It is not used since commit f78bbcae ("usb: f_mass_storage:
test whether thread is running before starting another")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1570610434-68293-2-git-send-email-zhengbin13@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b1a71c90
...@@ -105,7 +105,6 @@ static struct usb_function *f_msg; ...@@ -105,7 +105,6 @@ static struct usb_function *f_msg;
*/ */
static int acm_ms_do_config(struct usb_configuration *c) static int acm_ms_do_config(struct usb_configuration *c)
{ {
struct fsg_opts *opts;
int status; int status;
if (gadget_is_otg(c->cdev->gadget)) { if (gadget_is_otg(c->cdev->gadget)) {
...@@ -113,8 +112,6 @@ static int acm_ms_do_config(struct usb_configuration *c) ...@@ -113,8 +112,6 @@ static int acm_ms_do_config(struct usb_configuration *c)
c->bmAttributes |= USB_CONFIG_ATT_WAKEUP; c->bmAttributes |= USB_CONFIG_ATT_WAKEUP;
} }
opts = fsg_opts_from_func_inst(fi_msg);
f_acm = usb_get_function(f_acm_inst); f_acm = usb_get_function(f_acm_inst);
if (IS_ERR(f_acm)) if (IS_ERR(f_acm))
return PTR_ERR(f_acm); return PTR_ERR(f_acm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment