summaryrefslogtreecommitdiff
path: root/cros_ec/chip_stub/ec_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'cros_ec/chip_stub/ec_os.c')
-rw-r--r--cros_ec/chip_stub/ec_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cros_ec/chip_stub/ec_os.c b/cros_ec/chip_stub/ec_os.c
index 1997bf9111..ff48a5bf0b 100644
--- a/cros_ec/chip_stub/ec_os.c
+++ b/cros_ec/chip_stub/ec_os.c
@@ -396,7 +396,7 @@ EcError EcEventPost(EcEvent* event, uint32_t bits) {
EcError EcEventWaitAll(EcEvent* event, uint32_t bits, int timeout_usec) {
EcEventInternal* ei = (EcEventInternal*)event;
- int rv;
+ int rv = 0;
pthread_mutex_lock(&ei->mutex);
@@ -429,7 +429,7 @@ EcError EcEventWaitAll(EcEvent* event, uint32_t bits, int timeout_usec) {
EcError EcEventWaitAny(EcEvent* event, uint32_t bits, uint32_t* got_bits_ptr,
int timeout_usec) {
EcEventInternal* ei = (EcEventInternal*)event;
- int rv;
+ int rv = 0;
pthread_mutex_lock(&ei->mutex);