diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-08-04 16:21:49 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-12 20:26:22 +0200 |
commit | af255cd562aaa72455f9022a26afacd68f3fbf73 (patch) | |
tree | 0566e2687e90c95bed3c8fdd69b3d82e817207c9 /drivers/iio/kfifo_buf.c | |
parent | iio: bmg160: IIO_BUFFER and IIO_TRIGGERED_BUFFER are required (diff) | |
download | linux-af255cd562aaa72455f9022a26afacd68f3fbf73.tar.xz linux-af255cd562aaa72455f9022a26afacd68f3fbf73.zip |
iio: lsiio: fix error code handling error
commit acf50b3586f8d8a7530b905e111dda41876d38f4
"tools:iio:lsiio: add error handling"
introduced error handling of errors returned from
read_sysfs_string(), but with a simple if (retval),
missing the fact that these functions return a positive
value if the read was successful.
As a result lsiio regresses and does not show any
devices on my filesystem. Fix this by checking for
only negative error codes.
Cc: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/kfifo_buf.c')
0 files changed, 0 insertions, 0 deletions