mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
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>
This commit is contained in:
parent
8ae51ae172
commit
c2ba2ff511
1 changed files with 2 additions and 3 deletions
|
@ -239,9 +239,8 @@ int _do_env_set(int flag, int argc, char * const argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_CONSOLE_MUX
|
#ifdef CONFIG_CONSOLE_MUX
|
||||||
i = iomux_doenv(console, argv[2]);
|
if (iomux_doenv(console, argv[2]))
|
||||||
if (i)
|
return 1;
|
||||||
return i;
|
|
||||||
#else
|
#else
|
||||||
/* Try assigning specified device */
|
/* Try assigning specified device */
|
||||||
if (console_assign(console, argv[2]) < 0)
|
if (console_assign(console, argv[2]) < 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue