From 103a5fdfcbfa707ebf6c5ad9fd64e318364725f9 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 12 Feb 2010 16:05:09 -0600 Subject: Cleanup: No sense in creating the hash if failed --- plugins/hfp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins') 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; -- cgit v1.2.3