Commit 1bf2ee4e authored by David Binderman's avatar David Binderman Committed by Greg Kroah-Hartman

Staging: comedi: das1800: fix kfree coding style issue

Signed-off-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 81b571b7
...@@ -797,10 +797,8 @@ static int das1800_detach(struct comedi_device *dev) ...@@ -797,10 +797,8 @@ static int das1800_detach(struct comedi_device *dev)
free_dma(devpriv->dma0); free_dma(devpriv->dma0);
if (devpriv->dma1) if (devpriv->dma1)
free_dma(devpriv->dma1); free_dma(devpriv->dma1);
if (devpriv->ai_buf0) kfree(devpriv->ai_buf0);
kfree(devpriv->ai_buf0); kfree(devpriv->ai_buf1);
if (devpriv->ai_buf1)
kfree(devpriv->ai_buf1);
} }
printk("comedi%d: %s: remove\n", dev->minor, printk("comedi%d: %s: remove\n", dev->minor,
......
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