diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-21 14:30:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 14:38:00 -0500 |
commit | 420782c45b992c55201ee43426dcae2ffd9807a4 (patch) | |
tree | 6cc6f39432f61728df58f50a5850c7ff5c39d97d /common/iomux.c | |
parent | c939e1ca5d952cad05f4aa14135cba2b1b1947e0 (diff) | |
download | u-boot-420782c45b992c55201ee43426dcae2ffd9807a4.tar.gz u-boot-420782c45b992c55201ee43426dcae2ffd9807a4.tar.bz2 u-boot-420782c45b992c55201ee43426dcae2ffd9807a4.zip |
IOMUX: Drop indentation level by removing redundant 'else'
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>
Diffstat (limited to 'common/iomux.c')
-rw-r--r-- | common/iomux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/iomux.c b/common/iomux.c index 7991235d11..126d92ce85 100644 --- a/common/iomux.c +++ b/common/iomux.c @@ -126,12 +126,12 @@ int iomux_doenv(const int console, const char *arg) 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 */ |