提交 0642c94b 编写于 作者: I Ian Abbott 提交者: Greg Kroah-Hartman

staging: comedi: comedi_test: tidy up waveform_ai_interrupt()

Use a local variable to reduce the indentation in
`waveform_ai_interrupt()`.
Signed-off-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8bd48c9e
......@@ -203,19 +203,13 @@ static void waveform_ai_interrupt(unsigned long arg)
for (i = 0; i < num_scans; i++) {
for (j = 0; j < cmd->chanlist_len; j++) {
cfc_write_to_buffer(dev->read_subdev,
fake_waveform(dev,
CR_CHAN(cmd->
chanlist[j]),
CR_RANGE(cmd->
chanlist[j]),
devpriv->
usec_current +
i *
devpriv->scan_period +
j *
devpriv->
convert_period));
unsigned short sample;
sample = fake_waveform(dev, CR_CHAN(cmd->chanlist[j]),
CR_RANGE(cmd->chanlist[j]),
devpriv->usec_current +
i * devpriv->scan_period +
j * devpriv->convert_period);
cfc_write_to_buffer(dev->read_subdev, sample);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册