From 732b97d2098a59b2d5e4ad2be8c2f28ac99099a9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 21 Jan 2014 16:00:59 +0200 Subject: [PATCH] android/ipc: Leave the connect callback to handle errors It is not necessary to check connect errors since there is a watch created for that. --- android/ipc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/android/ipc.c b/android/ipc.c index 8098409ff..4f2428ccb 100644 --- a/android/ipc.c +++ b/android/ipc.c @@ -166,12 +166,7 @@ GIOChannel *ipc_connect(const char *path, size_t size, GIOFunc connect_cb, memcpy(addr.sun_path, path, size); - if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { - error("IPC: failed to connect HAL socket %s: %d (%s)", &path[1], - errno, strerror(errno)); - g_io_channel_unref(io); - return NULL; - } + connect(sk, (struct sockaddr *) &addr, sizeof(addr)); cond = G_IO_OUT | G_IO_ERR | G_IO_HUP | G_IO_NVAL; -- 2.47.3