Skip to content

Commit

Permalink
No need to check for this == NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 6c9046e commit cdaea93
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lib/bsock_tcp.c
Expand Up @@ -832,10 +832,6 @@ int BSOCK_TCP::wait_data(int sec, int usec)
{
int msec;

if (this == NULL) {
return -1;
}

msec = (sec * 1000) + (usec / 1000);
switch (wait_for_readable_fd(m_fd, msec, true)) {
case 0:
Expand All @@ -857,10 +853,6 @@ int BSOCK_TCP::wait_data_intr(int sec, int usec)
{
int msec;

if (this == NULL) {
return -1;
}

msec = (sec * 1000) + (usec / 1000);
switch (wait_for_readable_fd(m_fd, msec, false)) {
case 0:
Expand Down

0 comments on commit cdaea93

Please sign in to comment.