OSDN Git Service

usb: host: u132-hcd: remove redundant variable num_ports
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Jul 2018 09:36:43 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 13:41:56 +0000 (15:41 +0200)
commita99e72095c957d79edeff23c59c92b6320d186ba
treed39146d36e876f07e2e622e1841d076291846c1d
parentbebee48e7fd6e917b1625487342bfe3b3f5c1c56
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>
drivers/usb/host/u132-hcd.c