From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Thu, 17 Dec 2020 01:16:23 +0200 Subject: [PATCH v2 6/7] IOMUX: Drop indentation level by removing redundant 'else' In-Reply-To: <20201216231624.9724-1-andriy.shevchenko@linux.intel.com> References: <20201216231624.9724-1-andriy.shevchenko@linux.intel.com> Message-ID: <20201216231624.9724-6-andriy.shevchenko@linux.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- v2: no changes common/iomux.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/iomux.c b/common/iomux.c index 51557d028029..8a063563aa27 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 */ -- 2.29.2