staging: comedi: pcl818: kzalloc'ed memory does not need to be cleared
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Feb 2014 21:28:01 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:56:51 +0000 (11:56 -0800)
The private data is kzalloc'ed in the (*attach). There is no need to
initialize and the members to 0.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl818.c

index 56a5de712e87d2264f0164a7300152bb1fd6c742..861f51976fd70a86275d06d6bd9e57097afcc742 100644 (file)
@@ -1225,8 +1225,6 @@ static int pcl818_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                        dev->irq = it->options[1];
        }
 
-       devpriv->ai_mode = 0;   /* mode of irq */
-
        /* we need an IRQ to do DMA on channel 3 or 1 */
        if (dev->irq && board->has_dma &&
            (it->options[2] == 3 || it->options[2] == 1)) {