All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hfp_hf_bluez5: Remove unneeded modem hash lookup
@ 2013-02-01 13:24 Claudio Takahasi
  2013-02-01 14:03 ` Claudio Takahasi
  2013-02-14 14:52 ` Denis Kenzior
  0 siblings, 2 replies; 4+ messages in thread
From: Claudio Takahasi @ 2013-02-01 13:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

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 2f4a89e..543bf0f 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");
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-14 14:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 13:24 [PATCH] hfp_hf_bluez5: Remove unneeded modem hash lookup Claudio Takahasi
2013-02-01 14:03 ` Claudio Takahasi
2013-02-14 12:33   ` Claudio Takahasi
2013-02-14 14:52 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.