Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f7e0ca34 authored by Marek Vasut's avatar Marek Vasut Committed by Greg Kroah-Hartman
Browse files

iio: mxs-lradc: Remove useless check in read_raw



commit 2a961d0995cdadbfba565b28beada59c5ae7ebae upstream.

The removed check in the read_raw implementation was always true,
therefore remove it. This also fixes a bug, by closely inspecting
the code, one can notice the iio_validate_scan_mask_onehot() will
always return 1 and therefore the subsequent condition will always
succeed, therefore making the mxs_lradc_read_raw() function always
return -EINVAL; .

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Tested-by: default avatarOtavio Salvador <otavio@ossystems.com.br>
Acked-by: default avatarHector Palacios <hector.palacios@digi.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent abea7583
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment