[PATCH] nvedit: simplify do_env_indirect()
trini at konsulko.com
Fri Mar 31 16:16:22 CEST 2023
On Mon, Mar 06, 2023 at 02:27:21PM +0100, Rasmus Villemoes 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 at prevas.dk>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/next, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the U-Boot