task_setcancelstate.c:Fix style errors.

This commit is contained in:
David Sidrane 2020-03-08 05:51:35 -07:00 committed by patacongo
parent 5e4a3223a4
commit 667fede9ea
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ int task_setcancelstate(int state, FAR int *oldstate)
tcb->flags &= ~TCB_FLAG_CANCEL_PENDING;
#ifndef CONFIG_DISABLE_PTHREAD
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_PTHREAD)
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) ==
TCB_FLAG_TTYPE_PTHREAD)
{
pthread_exit(PTHREAD_CANCELED);
}