]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: Remove set but not used variable 'opts' in msg_do_config
authorzhengbin <zhengbin13@huawei.com>
Wed, 9 Oct 2019 08:40:34 +0000 (16:40 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 22 Oct 2019 07:39:04 +0000 (10:39 +0300)
commite804cd46b2a214ae5e02e20daf591934a23a66c6
treeab61e57ebadce722f2a5a1e542a4339783045878
parent6973dbdd1c1f34cebf2b93ad0c9a1aba84c9c04a
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>
drivers/usb/gadget/legacy/mass_storage.c