Skip to content

Commit

Permalink
config/asrockrack.go, config/dell.go: Properly return nil for unimple…
Browse files Browse the repository at this point in the history
…mented funcs
  • Loading branch information
splaspood committed Jul 18, 2024
1 parent f23f69e commit fc87035
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 7 additions & 7 deletions config/asrockrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,37 +117,37 @@ func (cm *asrockrackVendorConfig) StandardConfig() (biosConfig map[string]string

func (cm *asrockrackVendorConfig) BootOrder(mode string) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) BootMode(mode string) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) IntelSGX(mode string) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) SecureBoot(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) TPM(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) SMT(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) SRIOV(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *asrockrackVendorConfig) EnableTPM() {
Expand Down
15 changes: 7 additions & 8 deletions config/dell.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,40 +141,39 @@ func (cm *dellVendorConfig) StandardConfig() (biosConfig map[string]string, err

func (cm *dellVendorConfig) BootOrder(mode string) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) BootMode(mode string) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) IntelSGX(mode string) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) SecureBoot(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) TPM(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) SMT(enable bool) error {
// Unimplemented
return
return nil
}

func (cm *dellVendorConfig) SRIOV(enable bool) error {
// Unimplemented
return
return nil
}


func (cm *dellVendorConfig) EnableTPM() {
cm.Raw("EnableTPM", "Enabled", []string{"BIOS.Setup.1-1"})
}
Expand Down

0 comments on commit fc87035

Please sign in to comment.