diff options
author | Hartmut Knaack <knaack.h@gmx.de> | 2015-07-29 23:39:36 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-08 13:21:46 +0200 |
commit | 18422bb3c1d89b510bb7c590c716dd6ad8e1a1e4 (patch) | |
tree | fd558a1536a6b947113b0cbdde211c677d6425c7 /scripts/rt-tester | |
parent | iio:accel:stk8312: check for invalid value (diff) | |
download | linux-18422bb3c1d89b510bb7c590c716dd6ad8e1a1e4.tar.xz linux-18422bb3c1d89b510bb7c590c716dd6ad8e1a1e4.zip |
iio:accel:stk8312: improve error handling
Improve error handling in the following ways:
- set return value on error condition to an appropriate error code
- return error code immediately in case of an error (slightly changes
code structure)
- pass up real error code
- add missing error handling
- return 0 when error have been caught already
- put device back in active mode after error occurs
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/rt-tester')
0 files changed, 0 insertions, 0 deletions