From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:30:49 +0000 (-0700) Subject: staging: comedi: pcmmio: tidy up ao_rinsn() X-Git-Tag: v3.14-rc1~150^2~329 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af64f9acb2b13f24dfbb1c0aac91229671314d6;p=pandora-kernel.git staging: comedi: pcmmio: tidy up ao_rinsn() Rename this function so it has namespace associated with the driver. Move the 'chan' local variable out of the for () loop. The 'chan' is constant for the comedi_insn and only needs to be fetched once from the insn->chanspec. Also, remove the sanity check of the chan. The comedi core will ensure that the chan is valid for the subdevice before calling this function. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed