serial/ptmx: Fix the typo error in ptmx_minor_free

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-06 17:38:49 +08:00 committed by Petro Karashchenko
parent 6cc0388f4f
commit 15c487085a

View File

@ -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 */