summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-10-09 16:40:34 +0800
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-10-22 10:39:04 +0300
commite804cd46b2a214ae5e02e20daf591934a23a66c6 (patch)
treeab61e57ebadce722f2a5a1e542a4339783045878 /drivers/usb
parent6973dbdd1c1f34cebf2b93ad0c9a1aba84c9c04a (diff)
downloadlinux-e804cd46b2a214ae5e02e20daf591934a23a66c6.tar.gz
linux-e804cd46b2a214ae5e02e20daf591934a23a66c6.tar.bz2
linux-e804cd46b2a214ae5e02e20daf591934a23a66c6.zip
usb: gadget: Remove set but not used variable 'opts' in msg_do_config
Fixes gcc '-Wunused-but-set-variable' warning: drivers/usb/gadget/legacy/mass_storage.c: In function msg_do_config: drivers/usb/gadget/legacy/mass_storage.c:108:19: warning: variable opts set but not used [-Wunused-but-set-variable] It is not used since commit f78bbcae86e6 ("usb: f_mass_storage: test whether thread is running before starting another") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/legacy/mass_storage.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/legacy/mass_storage.c b/drivers/usb/gadget/legacy/mass_storage.c
index fd5595ac5bf7..f18f77584fc2 100644
--- a/drivers/usb/gadget/legacy/mass_storage.c
+++ b/drivers/usb/gadget/legacy/mass_storage.c
@@ -105,7 +105,6 @@ FSG_MODULE_PARAMETERS(/* no prefix */, mod_data);
static int msg_do_config(struct usb_configuration *c)
{
- struct fsg_opts *opts;
int ret;
if (gadget_is_otg(c->cdev->gadget)) {
@@ -113,8 +112,6 @@ static int msg_do_config(struct usb_configuration *c)
c->bmAttributes |= USB_CONFIG_ATT_WAKEUP;
}
- opts = fsg_opts_from_func_inst(fi_msg);
-
f_msg = usb_get_function(fi_msg);
if (IS_ERR(f_msg))
return PTR_ERR(f_msg);