summaryrefslogtreecommitdiff
path: root/common/host_event_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/host_event_commands.c')
-rw-r--r--common/host_event_commands.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/common/host_event_commands.c b/common/host_event_commands.c
index 0f092f6bea..9da08c892c 100644
--- a/common/host_event_commands.c
+++ b/common/host_event_commands.c
@@ -29,16 +29,8 @@ static void host_event_set_bit(host_event_t *ev, uint8_t bit)
uint32_t *ptr = (uint32_t *)ev;
*ev = 0;
-
- /*
- * Host events are 1-based, so return early if event 0 is requested to
- * be set.
- */
- if (bit == 0)
- return;
-
#ifdef CONFIG_HOST_EVENT64
- if (bit > 32)
+ if (bit >= 32)
*(ptr + 1) = HOST_EVENT_32BIT_MASK(bit - 32);
else
#endif