Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: lsiio: fix error code handling error
commit acf50b3 "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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Acked-by: Hartmut Knaack <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information