diff options
author | Phil Turnbull <phil.turnbull@oracle.com> | 2016-07-21 11:23:13 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-15 15:39:04 +0100 |
commit | 776b645315d372e06e46167194605d308aa1a790 (patch) | |
tree | 38f2b8164e92aa01a329af412e98176fb08d7804 /drivers/hwmon/sch56xx-common.h | |
parent | bb9947c3a14e781eb0f137728e7e55ec8d848991 (diff) | |
download | linux-stable-776b645315d372e06e46167194605d308aa1a790.tar.gz linux-stable-776b645315d372e06e46167194605d308aa1a790.tar.bz2 linux-stable-776b645315d372e06e46167194605d308aa1a790.zip |
staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE.
The 'break' statement after calling ad5933_cmd only breaks out of the
'for' loop, which then unconditionally sets the return value to -EINVAL.
Move the initialisation of 'ret' so we return the correct value.
Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/hwmon/sch56xx-common.h')
0 files changed, 0 insertions, 0 deletions