Skip to content

Commit 2dbc10a

Browse files
Thalleykartben
authored andcommitted
Bluetooth: BAP: Fix bad cast to void * instead of void for memcpy
The result of memcpy should be cast to (void) and not (void *). Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent e661a55 commit 2dbc10a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/audio/bap_scan_delegator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ static int scan_delegator_mod_src(struct bt_conn *conn,
912912
}
913913

914914
/* Store requested_bis_sync after everything has been validated */
915-
(void *)memcpy(internal_state->requested_bis_sync, requested_bis_sync,
916-
sizeof(requested_bis_sync));
915+
(void)memcpy(internal_state->requested_bis_sync, requested_bis_sync,
916+
sizeof(requested_bis_sync));
917917
atomic_clear_bit(internal_state->flags, BASS_RECV_STATE_INTERNAL_FLAG_NOTIFY_PEND);
918918

919919
/* Notify if changed */

0 commit comments

Comments
 (0)