summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-12 16:05:09 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-12 16:05:09 -0600
commit103a5fdfcbfa707ebf6c5ad9fd64e318364725f9 (patch)
tree9314684b3fdf15ed667d1491304435854ec2e204 /plugins
parented455645f98af37e93bc42094e4656465b83f1b7 (diff)
downloadofono-103a5fdfcbfa707ebf6c5ad9fd64e318364725f9.tar.bz2
Cleanup: No sense in creating the hash if failed
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 219f2683..29a11f76 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -999,15 +999,14 @@ static int hfp_init()
"PropertyChanged",
uuid_emitted, NULL, NULL);
-
- uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
- g_free, g_free);
-
if (adapter_watch == 0 || uuid_watch == 0) {
err = -EIO;
goto remove;
}
+ uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
+ g_free, g_free);
+
err = ofono_modem_driver_register(&hfp_driver);
if (err < 0)
goto remove;