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>
This commit is contained in:
Родитель
bebee48e7f
Коммит
a99e72095c
|
@ -3062,7 +3062,6 @@ static int u132_probe(struct platform_device *pdev)
|
||||||
int retval;
|
int retval;
|
||||||
u32 control;
|
u32 control;
|
||||||
u32 rh_a = -1;
|
u32 rh_a = -1;
|
||||||
u32 num_ports;
|
|
||||||
|
|
||||||
msleep(100);
|
msleep(100);
|
||||||
if (u132_exiting > 0)
|
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);
|
retval = ftdi_read_pcimem(pdev, roothub.a, &rh_a);
|
||||||
if (retval)
|
if (retval)
|
||||||
return retval;
|
return retval;
|
||||||
num_ports = rh_a & RH_A_NDP; /* refuse to confuse usbcore */
|
|
||||||
if (pdev->dev.dma_mask)
|
if (pdev->dev.dma_mask)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче