Remove obsolete tpmPath passed to OpenTPM

This commit is contained in:
Nils Hanke 2022-09-12 14:21:22 +02:00 committed by Nils Hanke
parent 1f4fb3feda
commit 25b769d1e2

View File

@ -12,17 +12,12 @@ import (
"github.com/google/go-tpm/tpm2"
)
const (
// tpmPath is the path to the vTPM.
tpmPath = "/dev/tpmrm0"
)
// TPMOpenFunc opens a TPM device.
type TPMOpenFunc func() (io.ReadWriteCloser, error)
// OpenVTPM opens the vTPM at `TPMPath`.
func OpenVTPM() (io.ReadWriteCloser, error) {
return tpm2.OpenTPM(tpmPath)
return tpm2.OpenTPM()
}
type nopTPM struct{}