mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-07 02:26:50 +00:00
rev180: Sync _plat__NVDisable with upstream
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
b2f161e8f7
commit
269a409dad
@ -286,8 +286,10 @@ LIB_EXPORT void _plat__NVDisable(
|
||||
)
|
||||
{
|
||||
NOT_REFERENCED(paramSize); // to keep compiler quiet
|
||||
int delete =
|
||||
(intptr_t)platParameter; // IN: If TRUE (!=0), delete the NV contents.
|
||||
int delete = ((intptr_t)platParameter != 0)
|
||||
? TRUE
|
||||
: FALSE; // IN: If TRUE (!=0), delete the NV contents.
|
||||
|
||||
#ifdef TPM_LIBTPMS_CALLBACKS
|
||||
int ret = libtpms_plat__NVDisable();
|
||||
if (ret != LIBTPMS_CALLBACK_FALLTHROUGH)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user