]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: dgnc: Fix unnecessary braces warning.
authorGulsah Kose <gulsah.1004@gmail.com>
Sun, 21 Sep 2014 19:56:15 +0000 (22:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:36:56 +0000 (13:36 -0700)
Fixes "braces {} are not necessary for single statement blocks"
checkpatch.pl warnings in dgnc_sysfs.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_sysfs.c

index 0d425ada0001f15ec76e74aad682827e3497a15d..6c3b387622e993b16cad1b39bbd956f8fcf12145 100644 (file)
@@ -125,9 +125,8 @@ void dgnc_create_driver_sysfiles(struct pci_driver *dgnc_driver)
        rc |= driver_create_file(driverfs, &driver_attr_debug);
        rc |= driver_create_file(driverfs, &driver_attr_rawreadok);
        rc |= driver_create_file(driverfs, &driver_attr_pollrate);
-       if (rc) {
+       if (rc)
                printk(KERN_ERR "DGNC: sysfs driver_create_file failed!\n");
-       }
 }
 
 
@@ -397,9 +396,8 @@ void dgnc_create_ports_sysfiles(struct dgnc_board *bd)
        rc |= device_create_file(&(bd->pdev->dev), &dev_attr_ports_txcount);
        rc |= device_create_file(&(bd->pdev->dev), &dev_attr_vpd);
        rc |= device_create_file(&(bd->pdev->dev), &dev_attr_serial_number);
-       if (rc) {
+       if (rc)
                printk(KERN_ERR "DGNC: sysfs device_create_file failed!\n");
-       }
 }