diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2016-08-07 18:45:50 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2016-08-10 21:37:33 +0300 |
commit | eec4d29247386a33d8c2b94a16de8f9ccf63c563 (patch) | |
tree | 0d9773763cbdaee01be1f0d50dbd73d001330aef | |
parent | c538bc7aa42e8853cd155d53aeed1221eed3c1fb (diff) |
bluetooth: remove a redundant assignment
pa_bluetooth_transport_put() assigns the transport to the device's
transports array, so the caller doesn't have to do that.
-rw-r--r-- | src/modules/bluetooth/backend-native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/backend-native.c b/src/modules/bluetooth/backend-native.c index 8d9d95c6..222e33b1 100644 --- 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; |