mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
Staging: comedi: bracing fix to ni_atmio.c
This is a patch to ni_atmio.c file to fix up bracing style problems found by checkpatch.pl tool Signed-off-by: Graham M Howe <gman.1352@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
cd9d25ba31
commit
bc2955ddf4
1 changed files with 17 additions and 17 deletions
|
@ -362,9 +362,9 @@ static int ni_atmio_detach(struct comedi_device *dev)
|
|||
|
||||
if (dev->iobase)
|
||||
release_region(dev->iobase, NI_SIZE);
|
||||
if (dev->irq) {
|
||||
if (dev->irq)
|
||||
free_irq(dev->irq, dev);
|
||||
}
|
||||
|
||||
if (devpriv->isapnp_dev)
|
||||
pnp_device_detach(devpriv->isapnp_dev);
|
||||
|
||||
|
@ -496,9 +496,9 @@ static int ni_atmio_attach(struct comedi_device *dev,
|
|||
/* generic E series stuff in ni_mio_common.c */
|
||||
|
||||
ret = ni_E_init(dev, it);
|
||||
if (ret < 0) {
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -509,16 +509,16 @@ static int ni_getboardtype(struct comedi_device *dev)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < n_ni_boards; i++) {
|
||||
if (ni_boards[i].device_id == device_id) {
|
||||
if (ni_boards[i].device_id == device_id)
|
||||
return i;
|
||||
|
||||
}
|
||||
}
|
||||
if (device_id == 255) {
|
||||
if (device_id == 255)
|
||||
printk(" can't find board\n");
|
||||
} else if (device_id == 0) {
|
||||
else if (device_id == 0)
|
||||
printk(" EEPROM read error (?) or device not found\n");
|
||||
} else {
|
||||
else
|
||||
printk(" unknown device ID %d -- contact author\n", device_id);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue