Skip to content

Commit 5cff080

Browse files
moonlight83340kartben
authored andcommitted
samples: bluetooth: cap_acceptor: Fix shadowed variable
Avoid redeclaring 'err' inside a nested block, which shadowed the outer definition. This cleanup prevents confusion and potential logical bugs. Signed-off-by: Gaetan Perrot <[email protected]>
1 parent 95d6058 commit 5cff080

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

samples/bluetooth/cap_acceptor/src/cap_acceptor_broadcast.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ static void bap_pa_sync_synced_cb(struct bt_le_per_adv_sync *sync,
529529
atomic_clear_bit(flags, FLAG_PA_SYNCING);
530530

531531
if (IS_ENABLED(CONFIG_SAMPLE_SCAN_SELF)) {
532-
int err;
533532

534533
err = bt_le_scan_stop();
535534
if (err != 0) {

0 commit comments

Comments
 (0)