Remove useless goto from anetTcpGenericConnect().

This commit is contained in:
antirez 2013-12-25 18:24:04 +01:00
parent 491f681088
commit cb23d510f4

View File

@ -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. */
goto end;
}
if (p == NULL) {
if (p == NULL)
anetSetError(err, "creating socket: %s", strerror(errno));
goto error;
}
error:
if (s != ANET_ERR) {