[Spice-commits] server/reds.c
Alon Levy
alon at kemper.freedesktop.org
Mon Mar 12 14:02:03 PDT 2012
server/reds.c | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit 42ac95e125286d3c9b012b33ef39e758f43dc083
Author: Nahum Shalman <nshalman at elys.com>
Date: Mon Mar 12 16:41:33 2012 -0400
server: remove superfluous check
no need to duplicate the check that the fd isn't -1
diff --git a/server/reds.c b/server/reds.c
index dc009f4..c54d30c 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -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);
More information about the Spice-commits
mailing list