commit | d54ccb480743704d0616ddfa8b797b87c31003ce | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Mon Mar 06 14:27:21 2023 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Mar 30 15:09:59 2023 -0400 |
tree | 9e8befd859c20dfbf4213249d91879e931c2e9ff | |
parent | 09f2304e5f9a9e9f1ef53f34f08f464fa8ed1aeb [diff] |
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: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>