Commit d28133dc authored by Dave Cheney's avatar Dave Cheney

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
parent 7bce6f93
......@@ -509,10 +509,6 @@ func (fd *netFD) Write(p []byte) (int, error) {
return 0, err
}
defer fd.decref()
if fd.sysfile == nil {
return 0, syscall.EINVAL
}
var err error
nn := 0
for {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment