forked from Minki/linux
Staging: comedi: cb_pcimdas.c: Checkpatch cleanup
WARNING: braces {} are not necessary for any arm of this statement + if (thisboard->has_dio) { [...] + } else { [...] WARNING: braces {} are not necessary for single statement blocks + if (devpriv->BADR0) { + comedi_pci_disable(devpriv->pci_dev); + } Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e3a21d0ac2
commit
7c2f1946a5
@ -330,11 +330,10 @@ found:
|
|||||||
|
|
||||||
s = dev->subdevices + 2;
|
s = dev->subdevices + 2;
|
||||||
/* digital i/o subdevice */
|
/* digital i/o subdevice */
|
||||||
if (thisboard->has_dio) {
|
if (thisboard->has_dio)
|
||||||
subdev_8255_init(dev, s, NULL, devpriv->BADR4);
|
subdev_8255_init(dev, s, NULL, devpriv->BADR4);
|
||||||
} else {
|
else
|
||||||
s->type = COMEDI_SUBD_UNUSED;
|
s->type = COMEDI_SUBD_UNUSED;
|
||||||
}
|
|
||||||
|
|
||||||
printk("attached\n");
|
printk("attached\n");
|
||||||
|
|
||||||
@ -365,9 +364,8 @@ static int cb_pcimdas_detach(struct comedi_device *dev)
|
|||||||
free_irq(dev->irq, dev);
|
free_irq(dev->irq, dev);
|
||||||
if (devpriv) {
|
if (devpriv) {
|
||||||
if (devpriv->pci_dev) {
|
if (devpriv->pci_dev) {
|
||||||
if (devpriv->BADR0) {
|
if (devpriv->BADR0)
|
||||||
comedi_pci_disable(devpriv->pci_dev);
|
comedi_pci_disable(devpriv->pci_dev);
|
||||||
}
|
|
||||||
pci_dev_put(devpriv->pci_dev);
|
pci_dev_put(devpriv->pci_dev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user