Commit 78adbb28 authored by Guillaume Morin's avatar Guillaume Morin Committed by Greg Kroah-Hartman

staging: dgnc_driver.c: code style fixes

Simple code style fixes:
 - "if(" -> "if ("
 - "switch(" -> "switch ("
 - move one open brace to the line of the declaration instead of
   its own line
 - remove trailing whitespace
Signed-off-by: default avatarGuillaume Morin <guillaume@morinfr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc894a02
...@@ -88,8 +88,7 @@ module_exit(dgnc_cleanup_module); ...@@ -88,8 +88,7 @@ module_exit(dgnc_cleanup_module);
/* /*
* File operations permitted on Control/Management major. * File operations permitted on Control/Management major.
*/ */
static const struct file_operations dgnc_BoardFops = static const struct file_operations dgnc_BoardFops = {
{
.owner = THIS_MODULE, .owner = THIS_MODULE,
.unlocked_ioctl = dgnc_mgmt_ioctl, .unlocked_ioctl = dgnc_mgmt_ioctl,
.open = dgnc_mgmt_open, .open = dgnc_mgmt_open,
...@@ -407,7 +406,7 @@ static void dgnc_cleanup_board(struct dgnc_board *brd) ...@@ -407,7 +406,7 @@ static void dgnc_cleanup_board(struct dgnc_board *brd)
{ {
int i = 0; int i = 0;
if(!brd || brd->magic != DGNC_BOARD_MAGIC) if (!brd || brd->magic != DGNC_BOARD_MAGIC)
return; return;
switch (brd->device) { switch (brd->device) {
...@@ -523,7 +522,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) ...@@ -523,7 +522,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
brd->irq = pci_irq; brd->irq = pci_irq;
switch(brd->device) { switch (brd->device) {
case PCI_DEVICE_CLASSIC_4_DID: case PCI_DEVICE_CLASSIC_4_DID:
case PCI_DEVICE_CLASSIC_8_DID: case PCI_DEVICE_CLASSIC_8_DID:
...@@ -887,7 +886,7 @@ int dgnc_ms_sleep(ulong ms) ...@@ -887,7 +886,7 @@ int dgnc_ms_sleep(ulong ms)
*/ */
char *dgnc_ioctl_name(int cmd) char *dgnc_ioctl_name(int cmd)
{ {
switch(cmd) { switch (cmd) {
case TCGETA: return "TCGETA"; case TCGETA: return "TCGETA";
case TCGETS: return "TCGETS"; case TCGETS: return "TCGETS";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment