TPM (FreeBSD): fix silly bug...

This commit is contained in:
Carter Li
2024-09-26 19:23:21 +08:00
parent af63e6e98b
commit d095f39418
+2 -2
View File
@@ -6,7 +6,7 @@ const char* ffDetectTPM(FFTPMResult* result)
{
if (ffSysctlGetString("dev.tpmcrb.0.%desc", &result->description) != NULL)
{
if (ffKernelModLoaded("tpm")) return "`tpm` kernel module is not loaded";
if (!ffKernelModLoaded("tpm")) return "`tpm` kernel module is not loaded";
return "TPM device is not found";
}
@@ -17,5 +17,5 @@ const char* ffDetectTPM(FFTPMResult* result)
else
ffStrbufSetStatic(&result->version, "unknown");
return "Not supported on this platform";
return NULL;
}