usb: core: hub: Removed some warnings generated by checkpatch.pl
authorChase Metzger <chasemetzger15@gmail.com>
Wed, 12 Aug 2015 04:34:37 +0000 (21:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Aug 2015 23:57:43 +0000 (16:57 -0700)
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>
drivers/usb/core/hub.c

index 78bd0d671d9a14a7d5ef5e36f6fb2c6e36af9e7c..431839bd291f0b2ab2d66b0019c16f04421efc3e 100644 (file)
@@ -1442,8 +1442,8 @@ static int hub_configure(struct usb_hub *hub,
                break;
        }
 
-       spin_lock_init (&hub->tt.lock);
-       INIT_LIST_HEAD (&hub->tt.clear_list);
+       spin_lock_init(&hub->tt.lock);
+       INIT_LIST_HEAD(&hub->tt.clear_list);
        INIT_WORK(&hub->tt.clear_work, hub_tt_work);
        switch (hdev->descriptor.bDeviceProtocol) {
        case USB_HUB_PR_FS:
@@ -1632,7 +1632,7 @@ static int hub_configure(struct usb_hub *hub,
        return 0;
 
 fail:
-       dev_err (hub_dev, "config failed, %s (err %d)\n",
+       dev_err(hub_dev, "config failed, %s (err %d)\n",
                        message, ret);
        /* hub_disconnect() frees urb and descriptor */
        return ret;
@@ -1775,7 +1775,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
        if ((desc->desc.bInterfaceSubClass != 0) &&
            (desc->desc.bInterfaceSubClass != 1)) {
 descriptor_error:
-               dev_err (&intf->dev, "bad descriptor, ignoring hub\n");
+               dev_err(&intf->dev, "bad descriptor, ignoring hub\n");
                return -EIO;
        }
 
@@ -1790,11 +1790,11 @@ descriptor_error:
                goto descriptor_error;
 
        /* We found a hub */
-       dev_info (&intf->dev, "USB hub found\n");
+       dev_info(&intf->dev, "USB hub found\n");
 
        hub = kzalloc(sizeof(*hub), GFP_KERNEL);
        if (!hub) {
-               dev_dbg (&intf->dev, "couldn't kmalloc hub struct\n");
+               dev_dbg(&intf->dev, "couldn't kmalloc hub struct\n");
                return -ENOMEM;
        }
 
@@ -1807,7 +1807,7 @@ descriptor_error:
        usb_get_intf(intf);
        usb_get_dev(hdev);
 
-       usb_set_intfdata (intf, hub);
+       usb_set_intfdata(intf, hub);
        intf->needs_remote_wakeup = 1;
        pm_suspend_ignore_children(&intf->dev, true);
 
@@ -1820,14 +1820,14 @@ descriptor_error:
        if (hub_configure(hub, endpoint) >= 0)
                return 0;
 
-       hub_disconnect (intf);
+       hub_disconnect(intf);
        return -ENODEV;
 }
 
 static int
 hub_ioctl(struct usb_interface *intf, unsigned int code, void *user_data)
 {
-       struct usb_device *hdev = interface_to_usbdev (intf);
+       struct usb_device *hdev = interface_to_usbdev(intf);
        struct usb_hub *hub = usb_hub_to_struct_hub(hdev);
 
        /* assert ifno == 0 (part of hub spec) */
@@ -2143,7 +2143,7 @@ void usb_disconnect(struct usb_device **pdev)
         * cleaning up all state associated with the current configuration
         * so that the hardware is now fully quiesced.
         */
-       dev_dbg (&udev->dev, "unregistering device\n");
+       dev_dbg(&udev->dev, "unregistering device\n");
        usb_disable_device(udev, 0);
        usb_hcd_synchronize_unlinks(udev);
 
@@ -2242,7 +2242,7 @@ static int usb_enumerate_device_otg(struct usb_device *udev)
                struct usb_bus                  *bus = udev->bus;
 
                /* descriptor may appear anywhere in config */
-               if (__usb_get_extra_descriptor (udev->rawdescriptors[0],
+               if (__usb_get_extra_descriptor(udev->rawdescriptors[0],
                                        le16_to_cpu(udev->config[0].desc.wTotalLength),
                                        USB_DT_OTG, (void **) &desc) == 0) {
                        if (desc->bmAttributes & USB_OTG_HNP) {
@@ -3526,7 +3526,7 @@ static int check_ports_changed(struct usb_hub *hub)
 
 static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
 {
-       struct usb_hub          *hub = usb_get_intfdata (intf);
+       struct usb_hub          *hub = usb_get_intfdata(intf);
        struct usb_device       *hdev = hub->hdev;
        unsigned                port1;
        int                     status;