mirror of https://gitee.com/openkylin/linux.git
Staging: comedi: fixed warnings reported by checkpatch tool on comedi_test.c file
This is a patch to remove warnings reported by checkpatch tool on comedi_test.c file Signed-off-by: Raghavendra Chandra Ganiga <ravi23ganiga@gmail.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
55fce2866e
commit
33bd00ef6d
|
@ -188,6 +188,7 @@ static void waveform_ai_interrupt(unsigned long arg)
|
||||||
|
|
||||||
if (cmd->stop_src == TRIG_COUNT) {
|
if (cmd->stop_src == TRIG_COUNT) {
|
||||||
unsigned int remaining = cmd->stop_arg - devpriv->ai_count;
|
unsigned int remaining = cmd->stop_arg - devpriv->ai_count;
|
||||||
|
|
||||||
if (num_scans >= remaining) {
|
if (num_scans >= remaining) {
|
||||||
/* about to finish */
|
/* about to finish */
|
||||||
num_scans = remaining;
|
num_scans = remaining;
|
||||||
|
@ -198,6 +199,7 @@ static void waveform_ai_interrupt(unsigned long arg)
|
||||||
for (i = 0; i < num_scans; i++) {
|
for (i = 0; i < num_scans; i++) {
|
||||||
for (j = 0; j < cmd->chanlist_len; j++) {
|
for (j = 0; j < cmd->chanlist_len; j++) {
|
||||||
unsigned short sample;
|
unsigned short sample;
|
||||||
|
|
||||||
sample = fake_waveform(dev, CR_CHAN(cmd->chanlist[j]),
|
sample = fake_waveform(dev, CR_CHAN(cmd->chanlist[j]),
|
||||||
CR_RANGE(cmd->chanlist[j]),
|
CR_RANGE(cmd->chanlist[j]),
|
||||||
devpriv->usec_current +
|
devpriv->usec_current +
|
||||||
|
|
Loading…
Reference in New Issue