staging: comedi: me_daq: remove useless for() loop

This for() loop isn't needed. Nothing in the loop uses the 'i'
variable. Remove it.

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>
This commit is contained in:
H Hartley Sweeten 2015-10-06 17:23:39 -07:00 committed by Greg Kroah-Hartman
parent 16aa2a6605
commit 46ada8afc8
1 changed files with 6 additions and 9 deletions

View File

@ -319,15 +319,12 @@ static int me_ao_insn_write(struct comedi_device *dev,
writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG);
/* Set dac-control register */
for (i = 0; i < insn->n; i++) {
/* clear bits for this channel */
devpriv->dac_ctrl &= ~ME_DAC_CTRL_MASK(chan);
if (range == 0)
devpriv->dac_ctrl |= ME_DAC_CTRL_GAIN(chan) |
ME_DAC_CTRL_BIPOLAR(chan);
else if (range == 1)
devpriv->dac_ctrl |= ME_DAC_CTRL_BIPOLAR(chan);
}
devpriv->dac_ctrl &= ~ME_DAC_CTRL_MASK(chan);
if (range == 0)
devpriv->dac_ctrl |= ME_DAC_CTRL_GAIN(chan) |
ME_DAC_CTRL_BIPOLAR(chan);
else if (range == 1)
devpriv->dac_ctrl |= ME_DAC_CTRL_BIPOLAR(chan);
writew(devpriv->dac_ctrl, dev->mmio + ME_DAC_CTRL_REG);
/* Update dac-control register */