1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:00:03 -07:00

internal/poll: eliminate the redundant type conversions of FD.Sysfd

Change-Id: Ib75662f717320510319c696520e645f54eec97f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/301569
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Andy Pan 2021-03-14 13:19:12 +08:00 committed by Ian Lance Taylor
parent 78f9015236
commit 15f16706fb
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) {
return 0, err
}
dst := int(dstFD.Sysfd)
dst := dstFD.Sysfd
var written int64
var err error
for remain > 0 {

View File

@ -20,7 +20,7 @@ func SendFile(dstFD *FD, src int, remain int64) (int64, error) {
return 0, err
}
dst := int(dstFD.Sysfd)
dst := dstFD.Sysfd
var written int64
var err error
for remain > 0 {

View File

@ -24,7 +24,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) {
return 0, err
}
dst := int(dstFD.Sysfd)
dst := dstFD.Sysfd
var written int64
var err error
for remain > 0 {