Skip to content

Commit

Permalink
tools: iio: iio_generic_buffer: drop unneeded parentheses
Browse files Browse the repository at this point in the history
Remove extra parentheses introduced in commit <73e176a tools: iio:
iio_generic_buffer: add -A to force-enable all channels>.

Suggested-by: Peter Meerwald-Stadler <[email protected]>
Signed-off-by: Eva Rachel Retuya <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
eraretuya authored and jic23 committed Oct 23, 2016
1 parent 71ccbe5 commit 7c5fe41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/iio/iio_generic_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ 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");
fprintf(stderr, "Proceeding without activating any channels\n");
}

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);
Expand Down

0 comments on commit 7c5fe41

Please sign in to comment.