[U-Boot] [PATCH] setenv: do console redirection even if previously unset
Wolfgang Denk
wd at denx.de
Sun Oct 18 23:07:14 CEST 2009
Dear Alessandro Rubini,
In message <20091008122914.GA4674 at mail.gnudd.com> you wrote:
> From: Alessandro Rubini <rubini at unipv.it>
>
> If "stdout" is not previously set, doing "setenv stdout lcd" had no
> effect, since console redirection only worked if the environment
> variable was already set; the second time you run setenv it worked.
> Most default environments lack stdin/out/err definitions, so I'm sure
> I'm not alone with this problem.
>
> This patch simply moves a block of code out of a conditional, to do
> the same work even if the variable was previously unset.
>
> Signed-off-by: Alessandro Rubini <rubini at unipv.it>
> Acked-by: Andrea Gallo <andrea.gallo at stericsson.com>
> ---
> common/cmd_nvedit.c | 62 +++++++++++++++++++++++++-------------------------
> 1 files changed, 31 insertions(+), 31 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our business is run on trust. We trust you will pay in advance.
More information about the U-Boot
mailing list