From c59a2fb87d39ed930f880a38955ddbf5212ec1a6 Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Mon, 22 May 2017 16:22:27 -0400 Subject: [PATCH] Removes Redundant Type Conversion --- syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls_linux.go b/syscalls_linux.go index a2e75f9..203c973 100644 --- a/syscalls_linux.go +++ b/syscalls_linux.go @@ -22,7 +22,7 @@ type ifReq struct { } func ioctl(fd uintptr, request int, argp uintptr) error { - _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, uintptr(fd), uintptr(request), argp) + _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(request), argp) if errno != 0 { return os.NewSyscallError("ioctl", errno) }