os: remove unneeded errno assignment

If socket() fails, it will return failure code. No need to reset errno
beforehand.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-04-23 11:37:40 +03:00
parent e7dd32710f
commit 1f827a4776

View file

@ -56,7 +56,6 @@ wl_os_socket_cloexec(int domain, int type, int protocol)
int fd;
#ifdef SOCK_CLOEXEC
errno = 0;
fd = socket(domain, type | SOCK_CLOEXEC, protocol);
if (fd >= 0)
return fd;