diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-12-09 15:30:49 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-17 10:01:50 -0800 |
| commit | 7af64f9acb2b13f24dfbb1c0aac91229671314d6 (patch) | |
| tree | 6c8ae3affeb493383d933d8099251fb1f1229be9 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 6f216c966cfc0fb585fd8f628287d3c5100b38fa (diff) | |
staging: comedi: pcmmio: tidy up ao_rinsn()
Rename this function so it has namespace associated with the driver.
Move the 'chan' local variable out of the for () loop. The 'chan' is
constant for the comedi_insn and only needs to be fetched once from
the insn->chanspec.
Also, remove the sanity check of the chan. The comedi core will ensure
that the chan is valid for the subdevice before calling this function.
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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
