diff mbox series

[BlueZ] bap: Remove duplicated code

Message ID 20230828193011.551312-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ] bap: Remove duplicated code | expand

Commit Message

Luiz Augusto von Dentz Aug. 28, 2023, 7:30 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

bap_create_io already handle streams of differents types.
---
 profiles/audio/bap.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

patchwork-bot+bluetooth@kernel.org Aug. 30, 2023, 11 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 28 Aug 2023 12:30:11 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> bap_create_io already handle streams of differents types.
> ---
>  profiles/audio/bap.c | 5 -----
>  1 file changed, 5 deletions(-)

Here is the summary with links:
  - [BlueZ] bap: Remove duplicated code
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=bc35476450af

You are awesome, thank you!
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index dfc71edf66e0..911cdd0a45be 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1714,11 +1714,6 @@  static void bap_state(struct bt_bap_stream *stream, uint8_t old_state,
 		break;
 	case BT_BAP_STREAM_STATE_CONFIG:
 		if (ep && !ep->id) {
-			if
-			(bt_bap_pac_get_type(ep->lpac) == BT_BAP_BCAST_SINK) {
-				bap_create_bcast_io(data, ep, stream, true);
-				return;
-			}
 			bap_create_io(data, ep, stream, true);
 			if (!ep->io) {
 				error("Unable to create io");