]> git.baikalelectronics.ru Git - uboot.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)
commite5201a30163423a69c4bdaeb5391fe4105b62e62
treeed8bff57efdee147344cf51a879e11fe9edda697
parent8997fd3b0e57fb0074efe8e94c158342918e0806
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