mirror of git://git.sysmocom.de/ofono
hfp_hf_bluez5: Remove unneeded modem hash lookup
Modem object is created when the Device Proxy is added, and it is paired. Another path is when the Device "Paired" property changes to True.
This commit is contained in:
parent
4394a362eb
commit
39f1480155
|
@ -166,10 +166,6 @@ static struct ofono_modem *modem_register(const char *device,
|
|||
struct ofono_modem *modem;
|
||||
char *path;
|
||||
|
||||
modem = g_hash_table_lookup(modem_hash, device);
|
||||
if (modem != NULL)
|
||||
return modem;
|
||||
|
||||
path = g_strconcat("hfp", device, NULL);
|
||||
|
||||
modem = ofono_modem_create(path, "hfp");
|
||||
|
|
Loading…
Reference in New Issue