diff options
author | Marek Vasut <marex@denx.de> | 2013-07-04 01:25:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-07-06 13:34:51 +0400 |
commit | 2a961d0995cdadbfba565b28beada59c5ae7ebae (patch) | |
tree | 370204d8dd4d0b59eb115d28724bba78898cdc32 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | e1b1fa66a0398f0b52ae79a2bdc7de87c205d074 (diff) | |
download | linux-2a961d0995cdadbfba565b28beada59c5ae7ebae.tar.xz |
iio: mxs-lradc: Remove useless check in read_raw
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: Marek Vasut <marex@denx.de>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions