From dfbf06e250b0b05548a9e2379c5651621fcbf15c Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Wed, 6 Apr 2022 17:09:16 +0800 Subject: [PATCH] fix uinput rpmsg logic error --- drivers/input/uinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/uinput.c b/drivers/input/uinput.c index d298a1adbcf..d8b84045d79 100644 --- a/drivers/input/uinput.c +++ b/drivers/input/uinput.c @@ -272,7 +272,7 @@ static void uinput_rpmsg_notify(FAR struct uinput_context_s *ctx, list_for_every_entry(&ctx->eptlist, ept, struct uinput_rpmsg_ept_s, node) { - if (is_rpmsg_ept_ready(&ept->ept) == 0) + if (is_rpmsg_ept_ready(&ept->ept)) { if (rpmsg_send(&ept->ept, buffer, buflen) < 0) {