projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c538bc7
)
bluetooth: remove a redundant assignment
author
Tanu Kaskinen
<tanuk@iki.fi>
Sun, 7 Aug 2016 15:45:50 +0000
(18:45 +0300)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Wed, 10 Aug 2016 18:37:33 +0000
(21:37 +0300)
pa_bluetooth_transport_put() assigns the transport to the device's
transports array, so the caller doesn't have to do that.
src/modules/bluetooth/backend-native.c
patch
|
blob
|
history
diff --git
a/src/modules/bluetooth/backend-native.c
b/src/modules/bluetooth/backend-native.c
index 8d9d95c61e237f74e550b201b477d88255acd01b..222e33b101c7644907807620144b55ce1a9ed085 100644
(file)
--- a/
src/modules/bluetooth/backend-native.c
+++ b/
src/modules/bluetooth/backend-native.c
@@
-351,7
+351,7
@@
static DBusMessage *profile_new_connection(DBusConnection *conn, DBusMessage *m,
p = PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT;
pathfd = pa_sprintf_malloc ("%s/fd%d", path, fd);
-
d->transports[p] =
t = pa_bluetooth_transport_new(d, sender, pathfd, p, NULL, 0);
+ t = pa_bluetooth_transport_new(d, sender, pathfd, p, NULL, 0);
pa_xfree(pathfd);
t->acquire = bluez5_sco_acquire_cb;