Cleaned up code.

This commit is contained in:
Markus Makela
2015-08-21 18:13:45 +03:00
parent d1bf6bb303
commit 7410b3dfbd

View File

@ -1162,12 +1162,9 @@ int below_water;
/** Return 1 if the write failure was due to EWOULDBLOCK or EAGAIN.
The rest of the buffer will be written once an EPOLL_OUT event
arrives.*/
if (saved_errno == 0 ||
saved_errno == EAGAIN ||
saved_errno == EWOULDBLOCK)
return 1;
else
return 0;
return saved_errno == 0 ||
saved_errno == EAGAIN ||
saved_errno == EWOULDBLOCK;
}
/*
* Pull the number of bytes we have written from