Skip to content

Commit 4447504

Browse files
committed
custom min function removed
1 parent e9b7b89 commit 4447504

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/gpu_fakedev/gpu_fakedev.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import (
4141
"fmt"
4242
"io/fs"
4343
"log"
44-
"math"
4544
"os"
4645
"path/filepath"
4746
"strconv"
@@ -83,11 +82,6 @@ type genOptions struct {
8382
devs int
8483
}
8584

86-
func min(val1 int, val2 int) int {
87-
// TODO replace this with template version of Min(), once Golang standard library gets one
88-
return int(math.Min(float64(val1), float64(val2)))
89-
}
90-
9185
func addSysfsDriTree(root string, opts *genOptions, i int) error {
9286
card := fmt.Sprintf("card%d", cardBase+i)
9387
base := filepath.Join(root, "class", "drm", card)

0 commit comments

Comments
 (0)