commit | f06563f0132b21ce4258f977c58f9eb01c90cdd3 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Fri Mar 22 09:54:41 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Mar 25 11:42:59 2013 -0700 |
tree | 115123a9f38867701d61dfef0b707724917377c9 | |
parent | fbca05d601a94d16912613d119f5b672a75a587f [diff] |
staging: comedi: ni_labpc: return error from labpc_counter_set_mode() Make sure labpc_counter_set_mode() was successfull and return any errno back to the caller. For the if/else conditions that either load the counter of just set the mode, use a common error patch to check for the error. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>