server: remove superfluous check

no need to duplicate the check that the fd isn't -1
This commit is contained in:
Nahum Shalman 2012-03-12 16:41:33 -04:00 committed by Alon Levy
parent 198ffb92d4
commit 42ac95e125

View File

@ -2999,9 +2999,6 @@ static int reds_init_net(void)
if (spice_listen_socket_fd != -1 ) {
reds->listen_socket = spice_listen_socket_fd;
if (-1 == reds->listen_socket) {
return -1;
}
reds->listen_watch = core->watch_add(reds->listen_socket,
SPICE_WATCH_EVENT_READ,
reds_accept, NULL);