From: H Hartley Sweeten Date: Mon, 25 Aug 2014 23:04:26 +0000 (-0700) Subject: staging: comedi: ni_atmio16d: cleanup atmio16d_ao_insn_write() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1026 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=898fb5cb5c174dfcdb87e8b1d49b11ecd77678b9;p=pandora-kernel.git staging: comedi: ni_atmio16d: cleanup atmio16d_ao_insn_write() The comedi core validates the insn->chanspec and data values before calling the (*insn_write) functions. The 'chan' will always be valid. Tidy up this function up a bit and remove the unnecessary code. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed