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:
Andrea Gelmini 2010-02-26 10:15:02 +01:00 committed by Greg Kroah-Hartman
parent e3a21d0ac2
commit 7c2f1946a5

View File

@ -330,11 +330,10 @@ found:
s = dev->subdevices + 2;
/* digital i/o subdevice */
if (thisboard->has_dio) {
if (thisboard->has_dio)
subdev_8255_init(dev, s, NULL, devpriv->BADR4);
} else {
else
s->type = COMEDI_SUBD_UNUSED;
}
printk("attached\n");
@ -365,9 +364,8 @@ static int cb_pcimdas_detach(struct comedi_device *dev)
free_irq(dev->irq, dev);
if (devpriv) {
if (devpriv->pci_dev) {
if (devpriv->BADR0) {
if (devpriv->BADR0)
comedi_pci_disable(devpriv->pci_dev);
}
pci_dev_put(devpriv->pci_dev);
}
}