diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-01-31 15:30:08 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-01-31 15:57:55 -0600 |
commit | 852ea612c80d24968ab5c0268b53ed0b707e0895 (patch) | |
tree | fa1e5956bd1444dda43ae0a8fa20b432a25bc322 /plugins/hfp_hf_bluez5.c | |
parent | 3e9a836afdd5d1b0581afd2395deff55bdf7a758 (diff) | |
download | ofono-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/hfp_hf_bluez5.c')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 5 |
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); |