// conversion timing
if(cmd->convert_src == TRIG_TIMER && i){
rt_task_wait_period();
- }
- ret = check_conversion_timing(dev, scan_start, i);
- if(ret < 0){
- comedi_error_done(dev,s);
- goto cleanup;
+ ret = check_conversion_timing(dev, scan_start, i);
+ if(ret < 0){
+ comedi_error_done(dev,s);
+ goto cleanup;
+ }
}
ret = comedi_data_read(devpriv->device,devpriv->subd,
CR_CHAN(cmd->chanlist[i]),
// conversion timing
if(cmd->convert_src == TRIG_TIMER && i){
rt_task_wait_period();
- }
- ret = check_conversion_timing(dev, scan_start, i);
- if(ret < 0){
- comedi_error_done(dev,s);
- goto cleanup;
+ ret = check_conversion_timing(dev, scan_start, i);
+ if(ret < 0){
+ comedi_error_done(dev,s);
+ goto cleanup;
+ }
}
data = buf_remove(dev, s);
if(data < 0) {