Commit f42a11ec authored by John Graham-Cumming's avatar John Graham-Cumming Committed by Ian Lance Taylor

net: eliminate odd if statement with identical branches

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7447044
parent be6e82e3
......@@ -182,11 +182,7 @@ func (s *pollServer) CheckDeadlines() {
if t > 0 {
if t <= now {
delete(s.pending, key)
if mode == 'r' {
s.poll.DelFD(fd.sysfd, mode)
} else {
s.poll.DelFD(fd.sysfd, mode)
}
s.poll.DelFD(fd.sysfd, mode)
s.WakeFD(fd, mode, errTimeout)
} else if nextDeadline == 0 || t < nextDeadline {
nextDeadline = t
......
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