"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");
}
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);