diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-09-29 10:02:33 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-09-29 10:02:33 -0500 |
commit | c035b1af4824ca7e2d2e115cf104a367f7d3140b (patch) | |
tree | 88202fbe6c0fe24b23db7b32afc01dfdb5e52850 /plugins/telit.c | |
parent | b722540594c99d1431842e79751bdb347551156f (diff) | |
download | ofono-c035b1af4824ca7e2d2e115cf104a367f7d3140b.tar.gz |
telit: Remove unneeded if
Diffstat (limited to 'plugins/telit.c')
-rw-r--r-- | plugins/telit.c | 6 |
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); |