net: remove another unguarded sysfile == nil check
Putting aside the unguarded access to fd.sysfile, the condition will never be true as fd.incref above handles the closed condition.
R=mikioh.mikioh, dvyukov
CC=golang-dev
https://golang.org/cl/6845062
diff --git a/src/pkg/net/fd_unix.go b/src/pkg/net/fd_unix.go
index 096ad41..d87c51e 100644
--- a/src/pkg/net/fd_unix.go
+++ b/src/pkg/net/fd_unix.go
@@ -509,10 +509,6 @@
return 0, err
}
defer fd.decref()
- if fd.sysfile == nil {
- return 0, syscall.EINVAL
- }
-
var err error
nn := 0
for {