Staging: comedi: amplc_pci224.c: coding style cleanups

Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
d binderman 2010-02-21 10:02:59 +00:00 committed by Greg Kroah-Hartman
parent 02c7b237f6
commit 48d07f2bf3

View File

@ -1536,20 +1536,12 @@ static int pci224_detach(struct comedi_device *dev)
s = dev->subdevices + 0;
/* AO subdevice */
if (s->range_table_list) {
kfree(s->range_table_list);
}
kfree(s->range_table_list);
}
if (devpriv) {
if (devpriv->ao_readback) {
kfree(devpriv->ao_readback);
}
if (devpriv->ao_scan_vals) {
kfree(devpriv->ao_scan_vals);
}
if (devpriv->ao_scan_order) {
kfree(devpriv->ao_scan_order);
}
kfree(devpriv->ao_readback);
kfree(devpriv->ao_scan_vals);
kfree(devpriv->ao_scan_order);
if (devpriv->pci_dev) {
if (dev->iobase) {
comedi_pci_disable(devpriv->pci_dev);