[U-Boot] [PATCH 1/1] tpm: simplify: tpm_set_global_lock()

Simon Glass sjg at chromium.org
Fri Feb 8 04:11:55 UTC 2019


On Mon, 4 Feb 2019 at 17:38, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> When in pack_byte_string() memcpy() is called for size 0 the source buffer
> address has no relevance. So we can use NULL here.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  lib/tpm-v1.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

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


More information about the U-Boot mailing list