staging: comedi: pcl816: kzalloc'ed memory does not need to be cleared
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 19 Feb 2014 17:11:27 +0000 (10:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2014 20:39:38 +0000 (12:39 -0800)
The private data is kzalloc'ed in the (*attach). There is no need to
initialize any of 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/pcl816.c

index 36c8c05a2f1134198a5abbb045f972dc0a4c5a62..ee7aca1c067b96f1bc1c110fa07f641f29dfff80 100644 (file)
@@ -802,9 +802,6 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                        dev->irq = it->options[1];
        }
 
-       devpriv->irq_blocked = 0;       /* number of subdevice which use IRQ */
-       devpriv->int816_mode = 0;       /* mode of irq */
-
        /* we need an IRQ to do DMA on channel 3 or 1 */
        if (dev->irq && (it->options[2] == 3 || it->options[2] == 1)) {
                ret = request_dma(it->options[2], dev->board_name);