telit: Remove unneeded if

This commit is contained in:
Denis Kenzior 2011-09-29 10:02:33 -05:00
parent b722540594
commit c035b1af48
1 changed files with 2 additions and 4 deletions

View File

@ -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);