2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00
linux-next/tools/iio
Linus Walleij af255cd562 iio: lsiio: fix error code handling error
commit acf50b3586
"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>
2015-08-12 19:26:22 +01:00
..
generic_buffer.c tools: iio: print error message when buffer enable fails 2015-08-02 18:39:27 +01:00
iio_event_monitor.c tools: iio: Send error messages to stderr 2015-07-20 18:41:24 +01:00
iio_utils.c tools: iio: remove unnecessary double pointer 2015-08-08 19:54:00 +01:00
iio_utils.h tools: iio: remove unnecessary double pointer 2015-08-08 19:54:00 +01:00
lsiio.c iio: lsiio: fix error code handling error 2015-08-12 19:26:22 +01:00
Makefile iio: make tools more cross-compilation friendly 2015-05-10 20:31:45 +01:00