From: H Hartley Sweeten Date: Wed, 5 Jun 2013 22:37:06 +0000 (-0700) Subject: staging: comedi: pcmad: tidy up pcmad_ai_insn_read() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~244 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3275b4d3db1f087c67fa115b150a9d2f9d8429f9;p=pandora-kernel.git staging: comedi: pcmad: tidy up pcmad_ai_insn_read() Use a local variable to read and munge the analog input data instead of directly using the 'data' pointer passed to the function. (*insn_read) functions either return an errno or the number of data values read. Change the final return to insn->n to make this clearer. Tidy up the function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed