Commit eddb297e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcmuio: kzalloc'ed data does not need cleared

The 'subpriv' pointer is kzalloc'ed during the attach.
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 43d70ce9
...@@ -713,7 +713,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -713,7 +713,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->insn_config = pcmuio_dio_insn_config; s->insn_config = pcmuio_dio_insn_config;
s->n_chan = min(chans_left, MAX_CHANS_PER_SUBDEV); s->n_chan = min(chans_left, MAX_CHANS_PER_SUBDEV);
subpriv->intr.asic = -1; subpriv->intr.asic = -1;
subpriv->intr.active = 0;
s->len_chanlist = 1; s->len_chanlist = 1;
/* save the ioport address for each 'port' of 8 channels in the /* 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) ...@@ -733,8 +732,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
&& subpriv->intr.asic < 0) { && subpriv->intr.asic < 0) {
/* setup the interrupt subdevice */ /* setup the interrupt subdevice */
subpriv->intr.asic = asic; subpriv->intr.asic = asic;
subpriv->intr.active = 0;
subpriv->intr.stop_count = 0;
dev->read_subdev = s; dev->read_subdev = s;
s->subdev_flags |= SDF_CMD_READ; s->subdev_flags |= SDF_CMD_READ;
s->cancel = pcmuio_cancel; s->cancel = pcmuio_cancel;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment