diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/amplc_pci224.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c index cac011fdd375..656df1abce89 100644 --- a/drivers/staging/comedi/drivers/amplc_pci224.c +++ b/drivers/staging/comedi/drivers/amplc_pci224.c @@ -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 = { |