[PATCH v3 11/13] env: Use memcpy() instead of ad-hoc code to copy variable value

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

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

Copy the value of the found variable into given buffer with memcpy()
instead of ad-hoc code.

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

Applied to u-boot-dm, thanks!

More information about the U-Boot mailing list