From: Andre Noll Date: Sun, 8 Sep 2013 04:22:29 +0000 (+0000) Subject: net: Remove unnecessary condition in makesock_addrinfo(). X-Git-Tag: v0.5.2~11^2~10 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=63a8840ff755de24d7a205f7ccc07ad0c68dc844;p=paraslash.git net: Remove unnecessary condition in makesock_addrinfo(). This code is executed only if src != NULL, which implies dst == NULL. --- diff --git a/net.c b/net.c index d00895f5..205041fd 100644 --- a/net.c +++ b/net.c @@ -460,8 +460,8 @@ static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai, close(sockfd); goto get_next_src; } - if (!dst) /* bind-only completed successfully */ - break; + /* bind completed successfully */ + break; } if (dst && connect(sockfd, dst->ai_addr, dst->ai_addrlen) == 0)