]> code.delx.au - pulseaudio/blobdiff - src/modules/bluetooth/bluez5-util.c
bluetooth: Remove redundant assignments
[pulseaudio] / src / modules / bluetooth / bluez5-util.c
index c7fb6ae5a4938096975a1e8f9b380574c3e293dc..89244a0e2ead0b2f89eb239650a4d46331240c5e 100644 (file)
@@ -419,11 +419,10 @@ static void device_free(pa_bluetooth_device *d) {
     if (d->uuids)
         pa_hashmap_free(d->uuids);
 
-    d->discovery = NULL;
-    d->adapter = NULL;
     pa_xfree(d->path);
     pa_xfree(d->alias);
     pa_xfree(d->address);
+    pa_xfree(d->adapter_path);
     pa_xfree(d);
 }
 
@@ -1232,7 +1231,7 @@ static DBusMessage *endpoint_set_configuration(DBusConnection *conn, DBusMessage
             goto fail2;
         }
     } else {
-        /* InterfacesAdded signal is probably on it's way, device_info_valid is kept as 0. */
+        /* InterfacesAdded signal is probably on its way, device_info_valid is kept as 0. */
         pa_log_warn("SetConfiguration() received for unknown device %s", dev_path);
         d = device_create(y, dev_path);
     }