From a4d14ccb3e45e0a24e149d2a818c504afeed01a5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 19 Jan 2011 15:32:52 +0100 Subject: ifx: Remove modification of GIOChannel before multiplexer setup After g_at_chat_new() call the GIOChannel is already in non blocking, no encoding and no buffering mode. So no need for extra modifications. --- plugins/ifx.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'plugins/ifx.c') diff --git a/plugins/ifx.c b/plugins/ifx.c index 61c60c14..0d31167b 100644 --- a/plugins/ifx.c +++ b/plugins/ifx.c @@ -434,17 +434,10 @@ error: static void setup_internal_mux(struct ofono_modem *modem) { struct ifx_data *data = ofono_modem_get_data(modem); - GIOFlags flags; int i; DBG(""); - flags = g_io_channel_get_flags(data->device) | G_IO_FLAG_NONBLOCK; - g_io_channel_set_flags(data->device, flags, NULL); - - g_io_channel_set_encoding(data->device, NULL, NULL); - g_io_channel_set_buffered(data->device, FALSE); - data->mux = g_at_mux_new_gsm0710_basic(data->device, data->frame_size); if (data->mux == NULL) goto error; -- cgit v1.2.3