[PATCH v3 06/13] env: Use string pointer instead of indexes in env_get_f()

Simon Glass sjg at chromium.org
Thu Oct 21 20:49:13 CEST 2021


From: Marek Behún <marek.behun at nic.cz>

Since we no longer use env_get_char() to access n-th character of
linearized environment data, but rather access the arrays themselves, we
can convert the iteration to use string pointers instead of position
indexes.

Signed-off-by: Marek Behún <marek.behun at nic.cz>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
 cmd/nvedit.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list