mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 18:34:19 +00:00
server: remove superfluous check
no need to duplicate the check that the fd isn't -1
This commit is contained in:
parent
198ffb92d4
commit
42ac95e125
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user