Skip to content

Commit a99e720

Browse files
Colin Ian Kinggregkh
authored andcommitted
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>
1 parent bebee48 commit a99e720

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/host/u132-hcd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,6 @@ static int u132_probe(struct platform_device *pdev)
30623062
int retval;
30633063
u32 control;
30643064
u32 rh_a = -1;
3065-
u32 num_ports;
30663065

30673066
msleep(100);
30683067
if (u132_exiting > 0)
@@ -3077,7 +3076,6 @@ static int u132_probe(struct platform_device *pdev)
30773076
retval = ftdi_read_pcimem(pdev, roothub.a, &rh_a);
30783077
if (retval)
30793078
return retval;
3080-
num_ports = rh_a & RH_A_NDP; /* refuse to confuse usbcore */
30813079
if (pdev->dev.dma_mask)
30823080
return -EINVAL;
30833081

0 commit comments

Comments
 (0)