Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: core: hub: Removed some warnings generated by checkpatch.pl

Removed some checkpatch.pl warnings saying there was an unwanted space between
function names and their arguments.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chase Metzger and committed by
Greg Kroah-Hartman
17248569 e4df9227

+12 -12
+12 -12
drivers/usb/core/hub.c
··· 1442 1442 break; 1443 1443 } 1444 1444 1445 - spin_lock_init (&hub->tt.lock); 1446 - INIT_LIST_HEAD (&hub->tt.clear_list); 1445 + spin_lock_init(&hub->tt.lock); 1446 + INIT_LIST_HEAD(&hub->tt.clear_list); 1447 1447 INIT_WORK(&hub->tt.clear_work, hub_tt_work); 1448 1448 switch (hdev->descriptor.bDeviceProtocol) { 1449 1449 case USB_HUB_PR_FS: ··· 1632 1632 return 0; 1633 1633 1634 1634 fail: 1635 - dev_err (hub_dev, "config failed, %s (err %d)\n", 1635 + dev_err(hub_dev, "config failed, %s (err %d)\n", 1636 1636 message, ret); 1637 1637 /* hub_disconnect() frees urb and descriptor */ 1638 1638 return ret; ··· 1775 1775 if ((desc->desc.bInterfaceSubClass != 0) && 1776 1776 (desc->desc.bInterfaceSubClass != 1)) { 1777 1777 descriptor_error: 1778 - dev_err (&intf->dev, "bad descriptor, ignoring hub\n"); 1778 + dev_err(&intf->dev, "bad descriptor, ignoring hub\n"); 1779 1779 return -EIO; 1780 1780 } 1781 1781 ··· 1790 1790 goto descriptor_error; 1791 1791 1792 1792 /* We found a hub */ 1793 - dev_info (&intf->dev, "USB hub found\n"); 1793 + dev_info(&intf->dev, "USB hub found\n"); 1794 1794 1795 1795 hub = kzalloc(sizeof(*hub), GFP_KERNEL); 1796 1796 if (!hub) { 1797 - dev_dbg (&intf->dev, "couldn't kmalloc hub struct\n"); 1797 + dev_dbg(&intf->dev, "couldn't kmalloc hub struct\n"); 1798 1798 return -ENOMEM; 1799 1799 } 1800 1800 ··· 1807 1807 usb_get_intf(intf); 1808 1808 usb_get_dev(hdev); 1809 1809 1810 - usb_set_intfdata (intf, hub); 1810 + usb_set_intfdata(intf, hub); 1811 1811 intf->needs_remote_wakeup = 1; 1812 1812 pm_suspend_ignore_children(&intf->dev, true); 1813 1813 ··· 1820 1820 if (hub_configure(hub, endpoint) >= 0) 1821 1821 return 0; 1822 1822 1823 - hub_disconnect (intf); 1823 + hub_disconnect(intf); 1824 1824 return -ENODEV; 1825 1825 } 1826 1826 1827 1827 static int 1828 1828 hub_ioctl(struct usb_interface *intf, unsigned int code, void *user_data) 1829 1829 { 1830 - struct usb_device *hdev = interface_to_usbdev (intf); 1830 + struct usb_device *hdev = interface_to_usbdev(intf); 1831 1831 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); 1832 1832 1833 1833 /* assert ifno == 0 (part of hub spec) */ ··· 2143 2143 * cleaning up all state associated with the current configuration 2144 2144 * so that the hardware is now fully quiesced. 2145 2145 */ 2146 - dev_dbg (&udev->dev, "unregistering device\n"); 2146 + dev_dbg(&udev->dev, "unregistering device\n"); 2147 2147 usb_disable_device(udev, 0); 2148 2148 usb_hcd_synchronize_unlinks(udev); 2149 2149 ··· 2242 2242 struct usb_bus *bus = udev->bus; 2243 2243 2244 2244 /* descriptor may appear anywhere in config */ 2245 - if (__usb_get_extra_descriptor (udev->rawdescriptors[0], 2245 + if (__usb_get_extra_descriptor(udev->rawdescriptors[0], 2246 2246 le16_to_cpu(udev->config[0].desc.wTotalLength), 2247 2247 USB_DT_OTG, (void **) &desc) == 0) { 2248 2248 if (desc->bmAttributes & USB_OTG_HNP) { ··· 3526 3526 3527 3527 static int hub_suspend(struct usb_interface *intf, pm_message_t msg) 3528 3528 { 3529 - struct usb_hub *hub = usb_get_intfdata (intf); 3529 + struct usb_hub *hub = usb_get_intfdata(intf); 3530 3530 struct usb_device *hdev = hub->hdev; 3531 3531 unsigned port1; 3532 3532 int status;