]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: simplify: tpm_set_global_lock()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 5 Feb 2019 00:38:41 +0000 (01:38 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Feb 2019 13:55:43 +0000 (08:55 -0500)
commitc7cd4afb923bd54f18bee71993127aca550f2737
treeed8bff57efdee147344cf51a879e11fe9edda697
parentb78a9e2212d4d15fd16af41ae33d05a5c33954de
tpm: simplify: tpm_set_global_lock()

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@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/tpm-v1.c