]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
env: unify logic to check and apply changes
authorGerlando Falauto <gerlando.falauto@keymile.com>
Fri, 24 Aug 2012 00:11:37 +0000 (00:11 +0000)
committerTom Rini <trini@ti.com>
Tue, 18 Sep 2012 19:01:52 +0000 (12:01 -0700)
commitc3f6525854bbc664ce9fbed9754af1daf56ba08e
treeb9d8544f12bcaa9b1014830b0ed9b82b632e85fd
parentc2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23
env: unify logic to check and apply changes

The logic of checking special parameters (e.g. baudrate, stdin, stdout,
for a valid value and/or whether can be overwritten) and applying the
new value to the running system is now all within a single function
env_check_apply() which can be called whenever changes are made
to the environment, no matter if by set, default or import.

With this patch env_check_apply() is only called by "env set",
retaining previous behavior.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Reviewed-by: Marek Vasut <marex@denx.de>
common/cmd_nvedit.c
include/search.h