Staging: comedi: das1800: fix kfree coding style issue
authorDavid Binderman <dcb314@hotmail.com>
Fri, 19 Mar 2010 09:28:07 +0000 (09:28 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:38 +0000 (11:35 -0700)
Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/das1800.c

index 3c3e0455c7c412077f2066b71881edada32fd5f0..d91c2d9d595b0d60345278d718040ba6dfc4526b 100644 (file)
@@ -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,