diff options
-rw-r--r-- | common/mkbp_event.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c index 12a439241b..32169d24e3 100644 --- a/common/mkbp_event.c +++ b/common/mkbp_event.c @@ -316,10 +316,12 @@ static int take_event_if_set(uint8_t event_type) static int mkbp_get_next_event(struct host_cmd_handler_args *args) { static int last; - int i, data_size, evt; + int i, evt; uint8_t *resp = args->response; const struct mkbp_event_source *src; + int data_size = -EC_ERROR_BUSY; + do { /* * Find the next event to service. We do this in a round-robin |