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:
Claudio Takahasi 2013-02-01 10:24:30 -03:00 committed by Denis Kenzior
parent 4394a362eb
commit 39f1480155
1 changed files with 0 additions and 4 deletions

View File

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