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

Simon Glass sjg at chromium.org
Thu Oct 14 17:11:20 CEST 2021


On Wed, 13 Oct 2021 at 09:46, Marek Behún <kabel at kernel.org> wrote:
>
> 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>
> ---
>  cmd/nvedit.c | 18 ++++++------------
>  1 file changed, 6 insertions(+), 12 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list