OSDN Git Service

usb/early: remove set but not used variable 'remain_length'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 6 Oct 2018 02:23:01 +0000 (02:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 14:07:55 +0000 (16:07 +0200)
commit24f5975f3aff03cb24026c768fdad0772304009b
tree33bcc2891d8235db3682917b56092c71d762824c
parentf65861c645ceb59f7325f696f0e8fa195dde575d
usb/early: remove set but not used variable 'remain_length'

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

drivers/usb/early/xhci-dbc.c: In function 'xdbc_handle_tx_event':
drivers/usb/early/xhci-dbc.c:720:9: warning:
 variable 'remain_length' set but not used [-Wunused-but-set-variable]

It never be used since introduction in
commit aeb9dd1de98c ("usb/early: Add driver for xhci debug capability")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/early/xhci-dbc.c