mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
serial/ptmx: Fix the typo error in ptmx_minor_free
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
6cc0388f4f
commit
15c487085a
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user