aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2012-12-19 15:39:44 -0700
committerGreg Kroah-Hartman <[email protected]>2013-01-07 14:25:47 -0800
commitca081b1d7e2f355b54a6fa1e63f84b8ceb9597de (patch)
tree78e5f3869aa71bac778c8f28e7ccaecfb9953b61 /tools/perf/scripts/python
parent0e700923bf63b4afb7bb213f140d5a6e28c32aa6 (diff)
staging: comedi: comedi_fops: cleanup comedi_poll()
Consolidate the local variables 'read_subdev' and 'write_subdev' into a single local variable 's'. Use comedi_dev_from_minor() to simplify the return -ENODEV tests. Use a goto in the !dev->attached test so that the mutex_unlock() call is in a common place. Cleanup the formating of the || in the read and write subdevice poll code. Signed-off-by: H Hartley Sweeten <[email protected]> Cc: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions