[PATCH] nvedit: simplify do_env_indirect()

Tom Rini 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...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230331/8e001b51/attachment.sig>

More information about the U-Boot mailing list