summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-04-08 14:31:23 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-09 16:19:44 -0700
commit64592df26f47a5b5512da2e23475bba5d918fbf6 (patch)
tree628f44dc0d0e1703b8c2beaf90904a1520146ab3 /tools/perf/scripts/python/bin
parentcd8de2ea012c94fb4d0fa385082d9dce26438265 (diff)
staging: comedi: acl7225b: cleanup acl7225b_do_insn_bits()
Use a local variable to hold the base register, 'reg', that is used to write to the relays. Add local variables for the 'mask' and 'bits' values used to update the relays. The relays only need to be updated if the 'mask' is set. Move the outb() calls into the if (mask) to make this clearer. 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/bin')
0 files changed, 0 insertions, 0 deletions