Skip to content

Commit

Permalink
intelana: use GetTable(data), not ParseEntryHeadersFrom(file)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 24, 2024
1 parent 63ecbc6 commit 952d638
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmds/intelana/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"io/ioutil"
"log"
"os"

fit "github.com/linuxboot/fiano/pkg/intel/metadata/fit"
ifd "github.com/linuxboot/fiano/pkg/tools"
Expand Down Expand Up @@ -63,8 +62,7 @@ func main() {
}

fmt.Printf("\n== FIT ==\n")
file, err := os.Open(path)
headers, err := fit.ParseEntryHeadersFrom(file)
headers, err := fit.GetTable(data)

Check failure on line 65 in cmds/intelana/main.go

View workflow job for this annotation

GitHub Actions / lint (1.21, ubuntu-latest)

SA4006: this value of `err` is never used (staticcheck)

Check failure on line 65 in cmds/intelana/main.go

View workflow job for this annotation

GitHub Actions / lint (1.21, macos-latest)

SA4006: this value of `err` is never used (staticcheck)

Check failure on line 65 in cmds/intelana/main.go

View workflow job for this annotation

GitHub Actions / lint (1.22, macos-latest)

SA4006: this value of `err` is never used (staticcheck)
j, err := json.MarshalIndent(headers, "", " ")
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 952d638

Please sign in to comment.