]> 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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:39:01 +0000 (10:39 +0300)
commit6973dbdd1c1f34cebf2b93ad0c9a1aba84c9c04a
tree147012f3c1e036b107b2b4ff72e40673cad21c08
parente6fda6e69db26670f9f09b1742525329e477304a
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>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/legacy/acm_ms.c