diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-09-19 15:12:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-21 09:19:44 -0700 |
commit | 2a29edf69807a43ad7594554cea4def755443103 (patch) | |
tree | 173f421b443561de7d1630f33f345cd62dff618e /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 43a352760e6c1c073c12f6e21d02b789525e677e (diff) |
staging: comedi: s526: cleanup s526_gpct_rinsn()
Use a local variable for the iobase of the channel being read.
This makes the inw() calls a bit cleaner.
Move the masking of the read data to make the value stored in
the data array a bit clearer.
The comedi core expects insn_read functions to return the number
of insn data values read. For this function, the final value of
'i' is correct but change the return to 'insn->n' just to make
it clear.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions