summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-08-24 00:11:36 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:52 -0700
commitc2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23 (patch)
treeebfc3f1b5fe99829e4ce06c31f04a6cccfc6feb2
parent8ae51ae172b89e198e33779403338fb41926950b (diff)
downloadu-boot-imx-c2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23.zip
u-boot-imx-c2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23.tar.gz
u-boot-imx-c2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23.tar.bz2
env: cosmetic: drop assignment i = iomux_doenv()
iomux_doenv() can only return 0 or 1. So there is no need to save its return value in variable i, as checking its truth value within an if statement is enough. Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Reviewed-by: Marek Vasut <marex@denx.de>
-rw-r--r--common/cmd_nvedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 0f320cc..eef6c10 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -239,9 +239,8 @@ int _do_env_set(int flag, int argc, char * const argv[])
}
#ifdef CONFIG_CONSOLE_MUX
- i = iomux_doenv(console, argv[2]);
- if (i)
- return i;
+ if (iomux_doenv(console, argv[2]))
+ return 1;
#else
/* Try assigning specified device */
if (console_assign(console, argv[2]) < 0)