summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorColin Ian King2018-07-13 11:36:43 +0200
committerGreg Kroah-Hartman2018-07-13 15:41:56 +0200
commita99e72095c957d79edeff23c59c92b6320d186ba (patch)
treed39146d36e876f07e2e622e1841d076291846c1d /drivers/usb/host
parentUSB: host: whci: remove redundant variable t (diff)
downloadkernel-qcow2-linux-a99e72095c957d79edeff23c59c92b6320d186ba.tar.gz
kernel-qcow2-linux-a99e72095c957d79edeff23c59c92b6320d186ba.tar.xz
kernel-qcow2-linux-a99e72095c957d79edeff23c59c92b6320d186ba.zip
usb: host: u132-hcd: remove redundant variable num_ports
Variable num_ports is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'num_ports' 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/u132-hcd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 032b8652910a..072bd5d5738e 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -3062,7 +3062,6 @@ static int u132_probe(struct platform_device *pdev)
int retval;
u32 control;
u32 rh_a = -1;
- u32 num_ports;
msleep(100);
if (u132_exiting > 0)
@@ -3077,7 +3076,6 @@ static int u132_probe(struct platform_device *pdev)
retval = ftdi_read_pcimem(pdev, roothub.a, &rh_a);
if (retval)
return retval;
- num_ports = rh_a & RH_A_NDP; /* refuse to confuse usbcore */
if (pdev->dev.dma_mask)
return -EINVAL;