diff options
author | 2023-08-11 11:47:15 -0400 | |
---|---|---|
committer | 2023-08-12 10:03:37 +0200 | |
commit | 5198c0eeb8ff98ee673a2420ba96d93c477c6ef4 (patch) | |
tree | 2ec5ad95f20a834d6685b3137ddedc025a5295e8 | |
parent | usb: host: ehci-sched: try to turn on io watchdog as long as periodic_count > 0 (diff) | |
download | linux-5198c0eeb8ff98ee673a2420ba96d93c477c6ef4.tar.gz linux-5198c0eeb8ff98ee673a2420ba96d93c477c6ef4.tar.bz2 linux-5198c0eeb8ff98ee673a2420ba96d93c477c6ef4.zip |
USB: core: Fix unused variable warning in usb_alloc_dev()
The kernel test robot reported that a recent commit caused a "variable
set but not used" warning. As a result of that commit, the variable
no longer serves any purpose; it should be removed.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308092350.HR4PVHUt-lkp@intel.com/
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: 1e4c574225cc ("USB: Remove remnants of Wireless USB and UWB")
Link: https://lore.kernel.org/r/7223cc66-f006-42ae-9f30-a6c546bf97a7@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/core/usb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 0945ff8df500..2a938cf47ccd 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -645,7 +645,6 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent, { struct usb_device *dev; struct usb_hcd *usb_hcd = bus_to_hcd(bus); - unsigned root_hub = 0; unsigned raw_port = port1; dev = kzalloc(sizeof(*dev), GFP_KERNEL); @@ -695,7 +694,6 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent, dev->dev.parent = bus->controller; device_set_of_node_from_dev(&dev->dev, bus->sysdev); dev_set_name(&dev->dev, "usb%d", bus->busnum); - root_hub = 1; } else { /* match any labeling on the hubs; it's one-based */ if (parent->devpath[0] == '0') { |