Skip to content

Commit 2d9d14e

Browse files
moonlight83340kartben
authored andcommitted
samples: bluetooth: cap_initiator: 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 5cff080 commit 2d9d14e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

samples/bluetooth/cap_initiator/src/cap_initiator_unicast.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ static int reset_cap_initiator(void)
786786
}
787787

788788
if (unicast_group != NULL) {
789-
int err;
790789

791790
err = unicast_group_delete();
792791
if (err != 0) {

0 commit comments

Comments
 (0)