Commit 2d9d14e5 authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Benjamin Cabé
Browse files

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: default avatarGaetan Perrot <gaetan.perrot@spacecubics.com>
parent 5cff0807
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -786,7 +786,6 @@ static int reset_cap_initiator(void)
	}

	if (unicast_group != NULL) {
		int err;

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