Obviously the following has unnecessary indentation level in 'else' branch.
if (foo) {
...
return;
} else {
...
}
Drop indentation level by removing redundant 'else'.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
if (cs_idx == 0) {
free(cons_set);
return 1;
- } else {
- /* Works even if console_devices[console] is NULL. */
- free(console_devices[console]);
- console_devices[console] = cons_set;
- cd_count[console] = cs_idx;
}
+
+ /* Works even if console_devices[console] is NULL. */
+ free(console_devices[console]);
+ console_devices[console] = cons_set;
+ cd_count[console] = cs_idx;
return 0;
}
#endif /* CONSOLE_MUX */