[PATCH 86/87] staging: comedi: pcl816: kzalloc'ed memory does not need to be cleared

H Hartley Sweeten hsweeten at visionengravers.com
Mon Feb 17 21:28:00 UTC 2014


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 at visionengravers.com>
Cc: Ian Abbott <abbotti at mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 drivers/staging/comedi/drivers/pcl816.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c
index 2b305bd..be2205d 100644
--- a/drivers/staging/comedi/drivers/pcl816.c
+++ b/drivers/staging/comedi/drivers/pcl816.c
@@ -763,8 +763,6 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 			dev->irq = it->options[1];
 	}
 
-	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);
-- 
1.8.5.2



More information about the devel mailing list