diff --git a/windows/mkwinsyscall/mkwinsyscall.go b/windows/mkwinsyscall/mkwinsyscall.go index 3947092c..f894ab3c 100644 --- a/windows/mkwinsyscall/mkwinsyscall.go +++ b/windows/mkwinsyscall/mkwinsyscall.go @@ -62,7 +62,6 @@ import ( "path/filepath" "runtime" "sort" - "strconv" "strings" "text/template" ) @@ -576,14 +575,7 @@ func (f *Fn) SyscallParamCount() int { // Syscall determines which SyscallX function to use for function f. func (f *Fn) Syscall() string { - c := f.SyscallParamCount() - if c == 3 { - return syscalldot() + "Syscall" - } - if c > 15 { - return syscalldot() + "SyscallN" - } - return syscalldot() + "Syscall" + strconv.Itoa(c) + return syscalldot() + "SyscallN" } // SyscallParamList returns source code for SyscallX parameters for function f.