Skip to content

Commit

Permalink
cli: Simplify the ARM check
Browse files Browse the repository at this point in the history
The getCPUDetails() routine can be simplified.

Fixes: kata-containers#1217

Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Samuel Ortiz committed Feb 7, 2019
1 parent d3c63e6 commit 5fca6bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/kata-check_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ func getCPUDetails() (vendor, model string, err error) {
if vendor, model, err := genericGetCPUDetails(); err == nil {
vendor = normalizeArmVendor(vendor)
model = normalizeArmModel(model)
return vendor, model, err
} else {
return vendor, model, err
}

return vendor, model, err
}

0 comments on commit 5fca6bb

Please sign in to comment.