From: H Hartley Sweeten Date: Mon, 8 Apr 2013 21:31:23 +0000 (-0700) Subject: staging: comedi: acl7225b: cleanup acl7225b_do_insn_bits() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~216 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64592df26f47a5b5512da2e23475bba5d918fbf6;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed