mirror of git://git.sysmocom.de/ofono
hfp_ag: Minor style tweaks
This commit is contained in:
parent
acf95155d0
commit
ed4a5ac174
|
@ -130,17 +130,16 @@ static void sim_state_watch(enum ofono_sim_state new_state, void *data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_VOICECALL)
|
if (__ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_VOICECALL) == NULL)
|
||||||
== NULL)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
modems = g_list_append(modems, modem);
|
modems = g_list_append(modems, modem);
|
||||||
|
|
||||||
if (modems->next == NULL)
|
if (modems->next != NULL)
|
||||||
server = bluetooth_register_server(HFP_AG_CHANNEL,
|
return;
|
||||||
hfp_ag_record,
|
|
||||||
hfp_ag_connect_cb,
|
server = bluetooth_register_server(HFP_AG_CHANNEL, hfp_ag_record,
|
||||||
NULL);
|
hfp_ag_connect_cb, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean sim_watch_remove(gpointer key, gpointer value,
|
static gboolean sim_watch_remove(gpointer key, gpointer value,
|
||||||
|
|
Loading…
Reference in New Issue