mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-10 15:39:28 -05:00
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:
committed by
Greg Kroah-Hartman
parent
81c18a9e37
commit
3545bee9b8
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user