This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 15c487085a8d4cdaf486c966c1691426c675f66b
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Feb 6 17:38:49 2022 +0800

    serial/ptmx: Fix the typo error in ptmx_minor_free
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 drivers/serial/ptmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/ptmx.c b/drivers/serial/ptmx.c
index 1baab82..bb907b6 100644
--- a/drivers/serial/ptmx.c
+++ b/drivers/serial/ptmx.c
@@ -306,7 +306,7 @@ void ptmx_minor_free(uint8_t minor)
   index = minor >> 5;
   bitno = minor & 31;
 
-  DEBUGASSERT((g_ptmx.px_alloctab[index] |= (1 << bitno)) != 0);
+  DEBUGASSERT((g_ptmx.px_alloctab[index] & (1 << bitno)) != 0);
   g_ptmx.px_alloctab[index] &= ~(1 << bitno);
 
   /* Reset the next pointer if the one just released has a lower value */

Reply via email to