mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
TPM (FreeBSD): fix silly bug...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user