From: H Hartley Sweeten Date: Fri, 22 Jun 2012 23:35:57 +0000 (-0700) Subject: staging: comedi: ni_daq_700: fix return for insn_config function X-Git-Tag: v3.6-rc1~100^2~611 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=740b48be40761c0345a3c5e7ad077b7e4616bd13;p=pandora-kernel.git staging: comedi: ni_daq_700: fix return for insn_config function The comedi insn_config functions should return < 0 for errors or the number of data elements used to perform the command, this value is available as 'insn->n'. Return that instead of the open coded number to better indicate what the return means. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed