]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: Remove set but not used variable 'opts' in acm_ms_do_config
authorzhengbin <zhengbin13@huawei.com>
Wed, 9 Oct 2019 08:40:33 +0000 (16:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 10:34:06 +0000 (12:34 +0200)
commit29234e3bb557fbddc14a815bec6da5c9ceab37cc
treed62b222fbd8a321a8d2364c403da95d63da71f03
parentb1a71c9047639e0a05683b55d37ff1a5c9bbcd07
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 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>
Link: https://lore.kernel.org/r/1570610434-68293-2-git-send-email-zhengbin13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/legacy/acm_ms.c