staging: comedi: drivers: Remove unneeded NULL check before kfree()

Remove NULL check before kfree as it is not needed.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Janani Ravichandran 2016-02-23 19:36:04 -05:00 committed by Greg Kroah-Hartman
parent 81c18a9e37
commit 3545bee9b8
1 changed files with 2 additions and 4 deletions

View File

@ -1096,10 +1096,8 @@ static void pci224_detach(struct comedi_device *dev)
struct pci224_private *devpriv = dev->private;
comedi_pci_detach(dev);
if (devpriv) {
kfree(devpriv->ao_scan_vals);
kfree(devpriv->ao_scan_order);
}
kfree(devpriv->ao_scan_vals);
kfree(devpriv->ao_scan_order);
}
static struct comedi_driver amplc_pci224_driver = {