diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-13 11:48:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-13 15:41:56 +0200 |
commit | 6c7dbe36198e23099209cb2938f9675849fdde68 (patch) | |
tree | 37ebac659135a9b00faa255a7f224eb4682e58e8 /drivers/usb/host | |
parent | usb: isp1760: remove redundant variable 'selector' (diff) | |
download | linux-6c7dbe36198e23099209cb2938f9675849fdde68.tar.xz linux-6c7dbe36198e23099209cb2938f9675849fdde68.zip |
usb: xhci: dbc: remove redundant pointer dbc
Pointer dbc is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
variable 'dbc' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-dbgcap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-dbgcap.c b/drivers/usb/host/xhci-dbgcap.c index 1fbfd89d0a0f..73d5a0e2a225 100644 --- a/drivers/usb/host/xhci-dbgcap.c +++ b/drivers/usb/host/xhci-dbgcap.c @@ -909,11 +909,9 @@ static ssize_t dbc_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { - struct xhci_dbc *dbc; struct xhci_hcd *xhci; xhci = hcd_to_xhci(dev_get_drvdata(dev)); - dbc = xhci->dbc; if (!strncmp(buf, "enable", 6)) xhci_dbc_start(xhci); |