summaryrefslogtreecommitdiffstats
path: root/plugins/sap.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-09-26 13:37:06 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-09-26 13:37:06 -0500
commit7771fa07c899bdddb6386b2a96d11884e9e735af (patch)
tree95ebc01690ce13f9cc7fe0a2fca340e6821cc7a4 /plugins/sap.c
parent64e2b33465242b6e0bc6c9dee3e9812abe7c008c (diff)
downloadofono-7771fa07c899bdddb6386b2a96d11884e9e735af.tar.bz2
sap: Fix minor whitespace issues
Diffstat (limited to 'plugins/sap.c')
-rw-r--r--plugins/sap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/sap.c b/plugins/sap.c
index 52fb2fb6..f5bab8d5 100644
--- a/plugins/sap.c
+++ b/plugins/sap.c
@@ -89,9 +89,7 @@ void bluetooth_sap_client_unregister(struct ofono_modem *modem)
g_hash_table_iter_init(&iter, modem_hash);
while (g_hash_table_iter_next(&iter, &key, &value)) {
-
g_hash_table_iter_remove(&iter);
-
sap_remove_modem(value);
}
@@ -143,7 +141,7 @@ static int bluetooth_sap_probe(const char *device, const char *dev_addr,
struct sap_data *data;
char buf[256];
- if(sap_hw_modem == NULL)
+ if (sap_hw_modem == NULL)
return -ENODEV;
/* We already have this device in our hash, ignore */
@@ -197,12 +195,10 @@ static void bluetooth_sap_remove(const char *prefix)
g_hash_table_iter_init(&iter, modem_hash);
while (g_hash_table_iter_next(&iter, &key, &value)) {
-
if (g_str_has_prefix((char *)key, prefix) == FALSE)
continue;
g_hash_table_iter_remove(&iter);
-
sap_remove_modem(value);
}
}