Remove useless goto from anetTcpGenericConnect().
This commit is contained in:
parent
b4bee62561
commit
cf71d130a1
@ -255,10 +255,8 @@ static int anetTcpGenericConnect(char *err, char *addr, int port, int flags)
|
|||||||
* have a connected socket. Let's return to the caller. */
|
* have a connected socket. Let's return to the caller. */
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (p == NULL) {
|
if (p == NULL)
|
||||||
anetSetError(err, "creating socket: %s", strerror(errno));
|
anetSetError(err, "creating socket: %s", strerror(errno));
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (s != ANET_ERR) {
|
if (s != ANET_ERR) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user