From: H Hartley Sweeten Date: Mon, 17 Feb 2014 21:28:01 +0000 (-0700) Subject: staging: comedi: pcl818: kzalloc'ed memory does not need to be cleared X-Git-Tag: v3.15-rc1~139^2~930 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=53693d9068735ccb4a2c304f60c88e168895029d;p=~emulex%2Finfiniband.git 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: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c index 56a5de712e8..861f51976fd 100644 --- a/drivers/staging/comedi/drivers/pcl818.c +++ b/drivers/staging/comedi/drivers/pcl818.c @@ -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)) {