summaryrefslogtreecommitdiffstats
path: root/plugins/telit.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-09-29 10:02:33 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-09-29 10:02:33 -0500
commitc035b1af4824ca7e2d2e115cf104a367f7d3140b (patch)
tree88202fbe6c0fe24b23db7b32afc01dfdb5e52850 /plugins/telit.c
parentb722540594c99d1431842e79751bdb347551156f (diff)
downloadofono-c035b1af4824ca7e2d2e115cf104a367f7d3140b.tar.bz2
telit: Remove unneeded if
Diffstat (limited to 'plugins/telit.c')
-rw-r--r--plugins/telit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/telit.c b/plugins/telit.c
index 2e422e7b..cb34ae60 100644
--- a/plugins/telit.c
+++ b/plugins/telit.c
@@ -98,10 +98,8 @@ static void sap_close_io(struct ofono_modem *modem)
if (data->bt_watch > 0)
g_source_remove(data->bt_watch);
- if (data->hw_io != NULL) {
- g_io_channel_unref(data->hw_io);
- data->hw_io = NULL;
- }
+ g_io_channel_unref(data->hw_io);
+ data->hw_io = NULL;
if (data->hw_watch > 0)
g_source_remove(data->hw_watch);