USB: cytherm: Correct the code style issue of redundant spaces
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 4 Aug 2023 09:17:12 +0000 (17:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:46:30 +0000 (14:46 +0200)
Ther are many redundant spaces, which is not consistent with
the kernel code style, so remove it.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230804091713.41503-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/cytherm.c

index 3e3802aaefa3bbe2dd1ee1e06e0b53caad61d268..9504178f5c89c742a641a7666b2d7e6282b329fc 100644 (file)
@@ -307,17 +307,17 @@ static int cytherm_probe(struct usb_interface *interface,
        struct usb_cytherm *dev = NULL;
        int retval = -ENOMEM;
 
-       dev = kzalloc (sizeof(struct usb_cytherm), GFP_KERNEL);
+       dev = kzalloc(sizeof(struct usb_cytherm), GFP_KERNEL);
        if (!dev)
                goto error_mem;
 
        dev->udev = usb_get_dev(udev);
 
-       usb_set_intfdata (interface, dev);
+       usb_set_intfdata(interface, dev);
 
        dev->brightness = 0xFF;
 
-       dev_info (&interface->dev,
+       dev_info(&interface->dev,
                  "Cypress thermometer device now attached\n");
        return 0;
 
@@ -329,10 +329,10 @@ static void cytherm_disconnect(struct usb_interface *interface)
 {
        struct usb_cytherm *dev;
 
-       dev = usb_get_intfdata (interface);
+       dev = usb_get_intfdata(interface);
 
        /* first remove the files, then NULL the pointer */
-       usb_set_intfdata (interface, NULL);
+       usb_set_intfdata(interface, NULL);
 
        usb_put_dev(dev->udev);