serial/ptmx: Fix the typo error in ptmx_minor_free
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6cc0388f4f
commit
15c487085a
@ -306,7 +306,7 @@ void ptmx_minor_free(uint8_t minor)
|
|||||||
index = minor >> 5;
|
index = minor >> 5;
|
||||||
bitno = minor & 31;
|
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);
|
g_ptmx.px_alloctab[index] &= ~(1 << bitno);
|
||||||
|
|
||||||
/* Reset the next pointer if the one just released has a lower value */
|
/* Reset the next pointer if the one just released has a lower value */
|
||||||
|
Loading…
Reference in New Issue
Block a user