diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-02-19 10:11:27 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-21 12:39:38 -0800 |
commit | efd5b7b5d79010ae147e384185b8ac594d028850 (patch) | |
tree | b680d8aea03ed95128a4d3ace76954b160c5a66d | |
parent | ab3c44fa38b30b990fd1a29e5954b044488ff990 (diff) |
staging: comedi: pcl816: kzalloc'ed memory does not need to be cleared
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>
-rw-r--r-- | drivers/staging/comedi/drivers/pcl816.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c index 36c8c05a2f11..ee7aca1c067b 100644 --- a/drivers/staging/comedi/drivers/pcl816.c +++ b/drivers/staging/comedi/drivers/pcl816.c @@ -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); |