summaryrefslogtreecommitdiffstats
path: root/plugins/hfp_hf_bluez5.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/hfp_hf_bluez5.c')
-rw-r--r--plugins/hfp_hf_bluez5.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index cd8f75ec..18ed348a 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -449,13 +449,14 @@ static int get_version(DBusMessageIter *iter, uint16_t *version)
dbus_message_iter_recurse(&entry, &valiter);
dbus_message_iter_get_basic(&valiter, &value);
- break;
- }
- if (version)
- *version = value;
+ if (version)
+ *version = value;
- return 0;
+ return 0;
+ }
+
+ return -ENOENT;
}
static DBusMessage *profile_new_connection(DBusConnection *conn,