summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2013-01-31 15:30:08 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-01-31 15:57:55 -0600
commit852ea612c80d24968ab5c0268b53ed0b707e0895 (patch)
treefa1e5956bd1444dda43ae0a8fa20b432a25bc322 /plugins
parent3e9a836afdd5d1b0581afd2395deff55bdf7a758 (diff)
downloadofono-852ea612c80d24968ab5c0268b53ed0b707e0895.tar.bz2
hfp_hf_bluez5: Remove unneeded error handling
Apart from g_io_channel_unix_new() not setting errno, it never returns an NULL pointer on error, because in practice it only calls g_new().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp_hf_bluez5.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 8cac9454..ff4dbadf 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -137,11 +137,6 @@ static int service_level_connection(struct ofono_modem *modem,
GAtChat *chat;
io = g_io_channel_unix_new(fd);
- if (io == NULL) {
- ofono_error("Service level connection failed: %s (%d)",
- strerror(errno), errno);
- return -EIO;
- }
syntax = g_at_syntax_new_gsm_permissive();
chat = g_at_chat_new(io, syntax);