summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-06-07 08:18:58 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-06-07 08:18:58 +0000
commit16441b2106ab7e7712ed21dd7a68ba308afc9942 (patch)
treefb008c3aa5e4872c56d35f751f04faf7d81e0bd9 /audio
parent8acc6d7b78f162cff2d9be534ff9acd23076d0e1 (diff)
Fix whitespace
Diffstat (limited to 'audio')
-rw-r--r--audio/manager.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 8c9fb7d9..18a653da 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -955,18 +955,18 @@ static DBusHandlerResult am_create_headset(DBusConnection *conn, DBusMessage *ms
str2ba(address, &bda);
device = find_device(&bda);
- if (device)
- goto done;
-
- device = create_device(&bda);
- if (!add_device(device)) {
- free_device(device);
- return error_reply(connection, msg,
- "org.bluez.audio.Error.Failed",
- "Unable to create new audio device");
- }
-
- created = TRUE;
+ if (device)
+ goto done;
+
+ device = create_device(&bda);
+ if (!add_device(device)) {
+ free_device(device);
+ return error_reply(connection, msg,
+ "org.bluez.audio.Error.Failed",
+ "Unable to create new audio device");
+ }
+
+ created = TRUE;
if (!device->headset) {
device->headset = headset_init(device->object_path, NULL, 0);