
6 Mar
2023
6 Mar
'23
6:53 p.m.
On Mon, 6 Mar 2023 at 06:27, Rasmus Villemoes rasmus.villemoes@prevas.dk wrote:
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
cmd/nvedit.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org