diff options
author | Eva Rachel Retuya <eraretuya@gmail.com> | 2016-10-20 17:19:24 +0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-23 19:34:10 +0100 |
commit | 7c5fe4112421aaef4a9ee35de8d21c1718855fc3 (patch) | |
tree | 133ec49f6cf53aeb9487765e06ada40616f9ad54 /tools/iio/iio_generic_buffer.c | |
parent | 71ccbe5dc566021ec5f810917bec7312527e421e (diff) | |
download | linux-7c5fe4112421aaef4a9ee35de8d21c1718855fc3.tar.bz2 |
tools: iio: iio_generic_buffer: drop unneeded parentheses
Remove extra parentheses introduced in commit <73e176a tools: iio:
iio_generic_buffer: add -A to force-enable all channels>.
Suggested-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio/iio_generic_buffer.c')
-rw-r--r-- | tools/iio/iio_generic_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iio/iio_generic_buffer.c b/tools/iio/iio_generic_buffer.c index 8ef39ae9858f..f0c6f54a8b2f 100644 --- a/tools/iio/iio_generic_buffer.c +++ b/tools/iio/iio_generic_buffer.c @@ -526,7 +526,7 @@ int main(int argc, char **argv) "diag %s\n", dev_dir_name); goto error; } - if ((num_channels && autochannels == AUTOCHANNELS_ENABLED) && + if (num_channels && autochannels == AUTOCHANNELS_ENABLED && !force_autochannels) { fprintf(stderr, "Auto-channels selected but some channels " "are already activated in sysfs\n"); @@ -534,7 +534,7 @@ int main(int argc, char **argv) } if ((!num_channels && autochannels == AUTOCHANNELS_ENABLED) || - ((autochannels == AUTOCHANNELS_ENABLED) && force_autochannels)) { + (autochannels == AUTOCHANNELS_ENABLED && force_autochannels)) { fprintf(stderr, "Enabling all channels\n"); ret = enable_disable_all_channels(dev_dir_name, 1); |