From ca29d42fc85681497ba5b4faec0844d8b993c1df Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Mon, 26 Jun 2023 20:54:49 +0200 Subject: [PATCH] Update tpm/tpm.go Co-authored-by: Mariano Cano --- tpm/tpm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tpm/tpm.go b/tpm/tpm.go index 2be8c127..31b9add7 100644 --- a/tpm/tpm.go +++ b/tpm/tpm.go @@ -291,8 +291,7 @@ func (t *TPM) close(ctx context.Context) error { } func (t *TPM) Available() (err error) { - ctx := context.Background() - _, err = t.Info(ctx) + _, err = t.Info(context.Background()) return }