summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-03-07 13:41:03 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 12:38:53 -0700
commit16a86abea711d9ea5893cd60a6cd608393f9698c (patch)
tree91a27b80016378b8521475f46cac26ebd48ac9c9 /tools/perf/scripts/python/syscall-counts.py
parent617cd65312a651d20c8c252b1465dfdec1a03ac4 (diff)
staging: comedi: jr3_pci: tidy up jr3_pci_ai_insn_read()
Refactor this function to make it clearer. The channel does not need to be validated. The comedi core does that for us. Exit early if the subdevice private data is invalid. Exit early if the subdevice 'state' is not done or there is an error. Factor out the code that actually reads the channel data to reduce the indent level. 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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions