Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53693d90 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: pcl818: kzalloc'ed memory does not need to be cleared



The private data is kzalloc'ed in the (*attach). There is no need to
initialize and the members to 0.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9968ed9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)) {