Bluetooth: CSIS: Remove set handle check from verify_members_and_get_inst The verify_members_and_get_inst can be used for more than just locking the set, so checking the specific handle in that does not make sense. The handle is furthermore already checked in csis_client_write_set_lock. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
diff --git a/subsys/bluetooth/audio/csis_client.c b/subsys/bluetooth/audio/csis_client.c index 3398d50..b8c60c5 100644 --- a/subsys/bluetooth/audio/csis_client.c +++ b/subsys/bluetooth/audio/csis_client.c
@@ -1275,11 +1275,6 @@ return -EINVAL; } - if (inst->cli.set_lock_handle == 0) { - BT_DBG("Member[%d] lock handle not set", i); - return -EINVAL; - } - if (*out_inst == NULL || (lowest_rank && inst->cli.rank < (*out_inst)->cli.rank) || (!lowest_rank && inst->cli.rank > (*out_inst)->cli.rank)) {