diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-06-01 14:39:26 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-02 16:58:21 +0000 |
commit | e5dc5e7ae3679f92e3982be3dd294ce9e3c8b597 (patch) | |
tree | 52ceebdaf09fc7e84690bc3b5a8cf786a91645d7 /core/cortex-m/task.c | |
parent | bc8dd35b3a0d5b24ca5df78ab9b308f2cf480a03 (diff) | |
download | chrome-ec-e5dc5e7ae3679f92e3982be3dd294ce9e3c8b597.tar.gz |
task: change task_set_event return type to void
No implementation does nothing other than return 0 on task_set_event(),
change the return type to void so that the API is clear.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I88b20f53aa6dffa291ce78f4776888b21985f57f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3683769
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'core/cortex-m/task.c')
-rw-r--r-- | core/cortex-m/task.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index 417a54f557..2ec1ec1dc2 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -449,7 +449,7 @@ static uint32_t __wait_evt(int timeout_us, task_id_t resched) return evt; } -uint32_t task_set_event(task_id_t tskid, uint32_t event) +void task_set_event(task_id_t tskid, uint32_t event) { task_ *receiver = __task_id_to_ptr(tskid); ASSERT(receiver); @@ -468,8 +468,6 @@ uint32_t task_set_event(task_id_t tskid, uint32_t event) } else { __schedule(0, tskid); } - - return 0; } uint32_t task_wait_event(int timeout_us) |