Diff between 95a961a62e5890dfa5d9eff0fee95294b04fba6c and 21b0084397d0a1468839932e61ccb0d0c61f6e71

Changed Files

File Additions Deletions Status
profiles/audio/device.c +1 -5 modified
profiles/audio/device.h +1 -6 modified
profiles/audio/manager.c +1 -1 modified

Full Patch

diff --git a/profiles/audio/device.c b/profiles/audio/device.c
index a0ace5e..0d66d9a 100644
--- a/profiles/audio/device.c
+++ b/profiles/audio/device.c
@@ -292,9 +292,7 @@ static void device_avctp_cb(struct audio_device *dev,
 	}
 }
 
-struct audio_device *audio_device_register(struct btd_device *device,
-							const bdaddr_t *src,
-							const bdaddr_t *dst)
+struct audio_device *audio_device_register(struct btd_device *device)
 {
 	struct audio_device *dev;
 
@@ -303,8 +301,6 @@ struct audio_device *audio_device_register(struct btd_device *device,
 	dev = g_new0(struct audio_device, 1);
 
 	dev->btd_dev = btd_device_ref(device);
-	bacpy(&dev->dst, dst);
-	bacpy(&dev->src, src);
 	dev->priv = g_new0(struct dev_priv, 1);
 	dev->priv->state = AUDIO_STATE_DISCONNECTED;
 
diff --git a/profiles/audio/device.h b/profiles/audio/device.h
index 77e3c98..325214b 100644
--- a/profiles/audio/device.h
+++ b/profiles/audio/device.h
@@ -36,9 +36,6 @@ typedef void (*audio_device_cb) (struct audio_device *dev, int err, void *data);
 struct audio_device {
 	struct btd_device *btd_dev;
 
-	bdaddr_t src;
-	bdaddr_t dst;
-
 	struct sink *sink;
 	struct source *source;
 	struct control *control;
@@ -50,9 +47,7 @@ struct audio_device {
 	struct dev_priv *priv;
 };
 
-struct audio_device *audio_device_register(struct btd_device *device,
-							const bdaddr_t *src,
-							const bdaddr_t *dst);
+struct audio_device *audio_device_register(struct btd_device *device);
 
 void audio_device_unregister(struct audio_device *device);
 
diff --git a/profiles/audio/manager.c b/profiles/audio/manager.c
index 1f55df9..3498945 100644
--- a/profiles/audio/manager.c
+++ b/profiles/audio/manager.c
@@ -741,7 +741,7 @@ struct audio_device *manager_get_device(const bdaddr_t *src,
 		return NULL;
 	}
 
-	dev = audio_device_register(device, src, dst);
+	dev = audio_device_register(device);
 	if (!dev)
 		return NULL;