Commit 7c5fe411 authored by Eva Rachel Retuya's avatar Eva Rachel Retuya Committed by Jonathan Cameron

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: default avatarPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: default avatarEva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 71ccbe5d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment