diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2014-09-21 22:56:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 13:36:56 -0700 |
commit | 77b55d84aa49d2144afa74725118321189593fbb (patch) | |
tree | b384df3882affc3aece9eb17ea4fbd540d2c03ae /drivers/staging/dgnc | |
parent | 35b8117b0ad066d5964a85e5fc0fdbe1bc735a13 (diff) |
staging: dgnc: Fix unnecessary braces warning.
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>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_sysfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index 0d425ada0001..6c3b387622e9 100644 --- a/drivers/staging/dgnc/dgnc_sysfs.c +++ b/drivers/staging/dgnc/dgnc_sysfs.c @@ -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"); - } } |