From: David Binderman Date: Fri, 19 Mar 2010 09:28:07 +0000 (+0000) Subject: Staging: comedi: das1800: fix kfree coding style issue X-Git-Tag: firefly_0821_release~9833^2~2055^2^2~491 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1bf2ee4ea19d3ebeb8fe35c03dd44cb1d851e19f;p=firefly-linux-kernel-4.4.55.git Staging: comedi: das1800: fix kfree coding style issue Signed-off-by: David Binderman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c index 3c3e0455c7c4..d91c2d9d595b 100644 --- a/drivers/staging/comedi/drivers/das1800.c +++ b/drivers/staging/comedi/drivers/das1800.c @@ -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,