Commit 48d07f2b authored by d binderman's avatar d binderman Committed by Greg Kroah-Hartman

Staging: comedi: amplc_pci224.c: coding style cleanups

Signed-off-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 02c7b237
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment