Skip to content

Commit

Permalink
WIP: mailbox: fix poll
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Martin <[email protected]>
  • Loading branch information
marcan committed Jul 8, 2022
1 parent b467b05 commit 1a1c306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mailbox/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ int mbox_flush(struct mbox_chan *chan, unsigned long timeout)
return -ENOTSUPP;

ret = chan->mbox->ops->flush(chan, timeout);
if (ret < 0)
if (ret >= 0)
tx_tick(chan, ret);

return ret;
Expand Down

0 comments on commit 1a1c306

Please sign in to comment.