Hi Kalle, Please keep the commit header to less than 50 lines. > + device = ofono_modem_get_string(modem, "SecondaryDevice"); > + if (!device) > + return -EINVAL; Two tabs is enough here. > + > + channel = g_at_tty_open(device, NULL); > + if (!channel) > + return -EIO; > + > + syntax = g_at_syntax_new_gsm_permissive(); > + data->event = g_at_chat_new(channel, syntax); > + g_at_syntax_unref(syntax); > + g_io_channel_unref(channel); > + > + if (!data->event) > + return -EIO; > + > + g_at_chat_add_terminator(data->event, "COMMAND NOT SUPPORT", -1, > + FALSE); Don't mix spaces and tabs for indentation > + > + if (getenv("OFONO_AT_DEBUG")) > + g_at_chat_set_debug(data->event, huawei_event_debug, NULL); > + > + Why the extra space? Also, this entire sequence leaks the data->chat in case the 2nd port could not be opened. See plugins/mbm.c for an example on how to do this better. Regards, -Denis