Commit 77b55d84 authored by Gulsah Kose's avatar Gulsah Kose Committed by Greg Kroah-Hartman
Browse files

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: default avatarGulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35b8117b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -125,10 +125,9 @@ 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");
}
}


void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver)
@@ -397,10 +396,9 @@ 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");
}
}


/* removes all the sys files created for that port */