Staging: comedi: cb_pcidio.c: Checkpatch cleanup
WARNING: braces {} are not necessary for single statement blocks + if (devpriv->dio_reg_base) { + comedi_pci_disable(devpriv->pci_dev); + } WARNING: braces {} are not necessary for single statement blocks + for (i = 0; i < thisboard->n_8255; i++) { + subdev_8255_cleanup(dev, dev->subdevices + i); + } Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
20db7d7de7
Коммит
e3a21d0ac2
|
@ -283,17 +283,15 @@ static int pcidio_detach(struct comedi_device *dev)
|
|||
printk("comedi%d: cb_pcidio: remove\n", dev->minor);
|
||||
if (devpriv) {
|
||||
if (devpriv->pci_dev) {
|
||||
if (devpriv->dio_reg_base) {
|
||||
if (devpriv->dio_reg_base)
|
||||
comedi_pci_disable(devpriv->pci_dev);
|
||||
}
|
||||
pci_dev_put(devpriv->pci_dev);
|
||||
}
|
||||
}
|
||||
if (dev->subdevices) {
|
||||
int i;
|
||||
for (i = 0; i < thisboard->n_8255; i++) {
|
||||
for (i = 0; i < thisboard->n_8255; i++)
|
||||
subdev_8255_cleanup(dev, dev->subdevices + i);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче