diff options
-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); |