diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2013-02-01 10:24:30 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-02-14 08:47:10 -0600 |
commit | 39f1480155bb8f7dac9d769481f346bf73fddbde (patch) | |
tree | da122b4b0c6af711641d670621cd6a71ba172bf5 /plugins/hfp_hf_bluez5.c | |
parent | 4394a362ebb3444e99c636d325905412069d132b (diff) | |
download | ofono-39f1480155bb8f7dac9d769481f346bf73fddbde.tar.bz2 |
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.
Diffstat (limited to 'plugins/hfp_hf_bluez5.c')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index f0957cfa..43acd998 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -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"); |