Skip to content
Commit 732b0825 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Tom Rini
Browse files

nvedit: simplify do_env_indirect()



Instead of calling env_get(from) up to three times, just do it once,
computing the value we will put into 'to' and error out if that is
NULL (i.e. no 'from' variable and no default provided).

No functional change.

Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent fef0f1cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment