diff mbox series

[BlueZ] bap: Remove duplicated code

Message ID 20230828193011.551312-1-luiz.dentz@gmail.com (mailing list archive)
State Accepted
Commit bc35476450af4256fd8284b1f5cfcbadcb90f8b6
Headers show
Series [BlueZ] bap: Remove duplicated code | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

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

bluez.test.bot@gmail.com Aug. 28, 2023, 8:33 p.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=780033

---Test result---

Test Summary:
CheckPatch                    PASS      0.34 seconds
GitLint                       PASS      0.25 seconds
BuildEll                      PASS      26.47 seconds
BluezMake                     PASS      787.73 seconds
MakeCheck                     PASS      11.98 seconds
MakeDistcheck                 PASS      158.02 seconds
CheckValgrind                 PASS      252.91 seconds
CheckSmatch                   PASS      341.71 seconds
bluezmakeextell               PASS      102.89 seconds
IncrementalBuild              PASS      657.14 seconds
ScanBuild                     PASS      1034.51 seconds



---
Regards,
Linux Bluetooth
patchwork-bot+bluetooth@kernel.org Aug. 30, 2023, 11 p.m. UTC | #2
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");