summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-06-18 13:23:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-24 15:51:02 -0700
commiteddb297edcba5ae1ff128a76e1984d5e9681ecf6 (patch)
tree059b79f833bea361ed03accc241d930b83733663 /drivers/staging/comedi
parent43d70ce9ac772647baf8aadef1aa0f071bfe7f36 (diff)
downloadlinux-eddb297edcba5ae1ff128a76e1984d5e9681ecf6.tar.bz2
staging: comedi: pcmuio: kzalloc'ed data does not need cleared
The 'subpriv' pointer is kzalloc'ed during the attach. 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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/pcmuio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c
index b348e2c3d3e5..2e08e661d7ef 100644
--- a/drivers/staging/comedi/drivers/pcmuio.c
+++ b/drivers/staging/comedi/drivers/pcmuio.c
@@ -713,7 +713,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->insn_config = pcmuio_dio_insn_config;
s->n_chan = min(chans_left, MAX_CHANS_PER_SUBDEV);
subpriv->intr.asic = -1;
- subpriv->intr.active = 0;
s->len_chanlist = 1;
/* save the ioport address for each 'port' of 8 channels in the
@@ -733,8 +732,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
&& subpriv->intr.asic < 0) {
/* setup the interrupt subdevice */
subpriv->intr.asic = asic;
- subpriv->intr.active = 0;
- subpriv->intr.stop_count = 0;
dev->read_subdev = s;
s->subdev_flags |= SDF_CMD_READ;
s->cancel = pcmuio_cancel;