summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-12-05 16:54:15 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-06 13:10:03 -0800
commitfc5ba1bd717b1daad46bb990f86cb30b2f2e219e (patch)
treeab21c3cd42ca120f3aaa9cd098063438ced909af /include
parentfbd66a7e87e0289f389d20f385bb3062d617f2d3 (diff)
downloadop-kernel-dev-fc5ba1bd717b1daad46bb990f86cb30b2f2e219e.zip
op-kernel-dev-fc5ba1bd717b1daad46bb990f86cb30b2f2e219e.tar.gz
staging: comedi: pcmuio: tidy up pcmuio_attach()
Clean up the local variables, 'sdev_no' and 'asic' are both used in simple for () loops. Use the local variable 'i' for both cases. The 'n_subdevs' variable is only used in one place, just remove it. For aesthetics, add some whitespace to the subdevice init and reorder it to follow the more typical style in comedi drivers. Remove the unnecessary init of s->len_chanlist for subdevices that do not support async commands (interrupts). The core will default it to the correct value. 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 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud