aboutsummaryrefslogtreecommitdiff
path: root/cmd/pci_mps.c
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2023-03-06 14:27:21 +0100
committerTom Rini <trini@konsulko.com>2023-03-30 15:09:59 -0400
commit732b0825475c1a2466a6abf6e223b2a77af011f2 (patch)
tree9e8befd859c20dfbf4213249d91879e931c2e9ff /cmd/pci_mps.c
parentfef0f1cc38a19f68e215fcc2504b4f60005179a2 (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>
Diffstat (limited to 'cmd/pci_mps.c')
0 files changed, 0 insertions, 0 deletions