ret = build_and_send_cmd(0, enable ? TPM_ORD_PhysicalEnable
: TPM_ORD_PhysicalDisable,
NULL, 0, TPM_DURATION_TYPE_SHORT);
- if (ret)
- goto err_exit;
-
- return 0;
-
-err_exit:
- if (enable)
- dprintf(DEBUG_tcg, "TCGBIOS: Enabling the TPM failed.\n");
- else
- dprintf(DEBUG_tcg, "TCGBIOS: Disabling the TPM failed.\n");
-
- dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", __LINE__);
-
- tpm_set_failure();
+ if (ret) {
+ if (enable)
+ dprintf(DEBUG_tcg, "TCGBIOS: Enabling the TPM failed.\n");
+ else
+ dprintf(DEBUG_tcg, "TCGBIOS: Disabling the TPM failed.\n");
+ }
return ret;
}
: sizeof(CommandFlag_TRUE),
TPM_DURATION_TYPE_SHORT);
if (ret)
- goto err_exit;
+ return ret;
if (activate && allow_reset) {
if (verbose) {
}
return 0;
-
-err_exit:
- dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", __LINE__);
-
- tpm_set_failure();
- return ret;
}
static int
ret = build_and_send_cmd(0, TPM_ORD_ForceClear,
NULL, 0, TPM_DURATION_TYPE_SHORT);
if (ret)
- goto err_exit;
+ return ret;
if (!enable_activate_after) {
if (verbose)
}
return enable_activate(1, verbose);
-
-err_exit:
- dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", __LINE__);
-
- tpm_set_failure();
- return ret;
}
static int
sizeof(CommandFlag_TRUE),
TPM_DURATION_TYPE_SHORT);
if (ret)
- goto err_exit;
+ return ret;
if (verbose)
printf("Installation of owner %s.\n", allow ? "enabled" : "disabled");
return 0;
-
-err_exit:
- dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", __LINE__);
- tpm_set_failure();
- return ret;
}
static int