From 39f1480155bb8f7dac9d769481f346bf73fddbde Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 1 Feb 2013 10:24:30 -0300 Subject: [PATCH] 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. --- plugins/hfp_hf_bluez5.c | 4 ---- 1 file changed, 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");