hujun260 commented on code in PR #14578:
URL: https://github.com/apache/nuttx/pull/14578#discussion_r1825384484
##########
arch/xtensa/src/esp32/esp32_ble_adapter.c:
##########
@@ -2353,12 +2353,7 @@ static int32_t esp_task_create_pinned_to_core(void
*entry,
DEBUGASSERT(task_handle != NULL);
#ifdef CONFIG_SMP
- ret = sched_lock();
- if (ret)
- {
- wlerr("Failed to lock scheduler before creating pinned thread\n");
- return false;
- }
Review Comment:
We have changed the return type of sched_lock to void, meaning that
sched_lock cannot fail.
so we do not need this check
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]