Skip to content

Commit

Permalink
Staging: comedi: das1800: fix kfree coding style issue
Browse files Browse the repository at this point in the history
Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Binderman authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 81b571b commit 1bf2ee4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/comedi/drivers/das1800.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,8 @@ static int das1800_detach(struct comedi_device *dev)
free_dma(devpriv->dma0);
if (devpriv->dma1)
free_dma(devpriv->dma1);
if (devpriv->ai_buf0)
kfree(devpriv->ai_buf0);
if (devpriv->ai_buf1)
kfree(devpriv->ai_buf1);
kfree(devpriv->ai_buf0);
kfree(devpriv->ai_buf1);
}

printk("comedi%d: %s: remove\n", dev->minor,
Expand Down

0 comments on commit 1bf2ee4

Please sign in to comment.