diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-21 16:00:59 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-01-21 16:20:54 +0100 |
commit | 732b97d2098a59b2d5e4ad2be8c2f28ac99099a9 (patch) | |
tree | ac9284fe1bc951fb417058e8c7f5240cf0021103 /android/ipc.c | |
parent | c26f5203fdba0b9e6fa3a1eed2d9546fd48f44dd (diff) | |
download | bluez-732b97d2098a59b2d5e4ad2be8c2f28ac99099a9.tar.gz |
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.
Diffstat (limited to 'android/ipc.c')
-rw-r--r-- | android/ipc.c | 7 |
1 files changed, 1 insertions, 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; |