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 /zephyr | |
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 'zephyr')
-rw-r--r-- | zephyr/shim/src/tasks.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zephyr/shim/src/tasks.c b/zephyr/shim/src/tasks.c index 196820ac3e..248d5e9607 100644 --- a/zephyr/shim/src/tasks.c +++ b/zephyr/shim/src/tasks.c @@ -140,7 +140,7 @@ atomic_t *task_get_event_bitmap(task_id_t cros_task_id) return &data->event_mask; } -uint32_t task_set_event(task_id_t cros_task_id, uint32_t event) +void task_set_event(task_id_t cros_task_id, uint32_t event) { struct task_ctx_base_data *data; @@ -148,8 +148,6 @@ uint32_t task_set_event(task_id_t cros_task_id, uint32_t event) atomic_or(&data->event_mask, event); k_poll_signal_raise(&data->new_event, 0); - - return 0; } uint32_t task_wait_event(int timeout_us) |