Commit 3545bee9 authored by Janani Ravichandran's avatar Janani Ravichandran Committed by Greg Kroah-Hartman

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

Remove NULL check before kfree as it is not needed.
Signed-off-by: default avatarJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81c18a9e
...@@ -1096,10 +1096,8 @@ static void pci224_detach(struct comedi_device *dev) ...@@ -1096,10 +1096,8 @@ static void pci224_detach(struct comedi_device *dev)
struct pci224_private *devpriv = dev->private; struct pci224_private *devpriv = dev->private;
comedi_pci_detach(dev); comedi_pci_detach(dev);
if (devpriv) { kfree(devpriv->ao_scan_vals);
kfree(devpriv->ao_scan_vals); kfree(devpriv->ao_scan_order);
kfree(devpriv->ao_scan_order);
}
} }
static struct comedi_driver amplc_pci224_driver = { static struct comedi_driver amplc_pci224_driver = {
......
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