提交 c2ba2ff5 编写于 作者: G Gerlando Falauto 提交者: Tom Rini

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: NGerlando Falauto <gerlando.falauto@keymile.com>
Reviewed-by: NMarek Vasut <marex@denx.de>
上级 8ae51ae1
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册