From c035b1af4824ca7e2d2e115cf104a367f7d3140b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 29 Sep 2011 10:02:33 -0500 Subject: telit: Remove unneeded if --- plugins/telit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/telit.c') 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); -- cgit v1.2.3