fix blocking msgq poll (#64)

* remove unnecessary condition on msqg poll

* fix blocking msgq poll
This commit is contained in:
Adeeb Shihadeh
2020-09-12 22:59:12 -07:00
committed by GitHub
parent ba61dbdf46
commit 2d48c23ca5

View File

@@ -429,8 +429,6 @@ int msgq_msg_recv(msgq_msg_t * msg, msgq_queue_t * q){
int msgq_poll(msgq_pollitem_t * items, size_t nitems, int timeout){
assert(timeout >= 0);
int num = 0;
// Check if messages ready