uart_tcsendbreak: Remove cancel point, as tcsendbreak is not one

Reference:
https://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html
This commit is contained in:
Ville Juven 2023-11-13 15:09:48 +02:00 committed by Xiang Xiao
parent 7996266f6e
commit b3f20d4bd6
1 changed files with 0 additions and 15 deletions

View File

@ -500,20 +500,6 @@ static int uart_tcsendbreak(FAR uart_dev_t *dev, FAR struct file *filep,
{ {
int ret; int ret;
/* tcsendbreak is a cancellation point */
if (enter_cancellation_point())
{
#ifdef CONFIG_CANCELLATION_POINTS
/* If there is a pending cancellation, then do not perform
* the wait. Exit now with ECANCELED.
*/
leave_cancellation_point();
return -ECANCELED;
#endif
}
/* REVISIT: Do we need to perform the equivalent of tcdrain() before /* REVISIT: Do we need to perform the equivalent of tcdrain() before
* beginning the Break to avoid corrupting the transmit data? If so, note * beginning the Break to avoid corrupting the transmit data? If so, note
* that just calling uart_tcdrain() here would create a race condition, * that just calling uart_tcdrain() here would create a race condition,
@ -553,7 +539,6 @@ static int uart_tcsendbreak(FAR uart_dev_t *dev, FAR struct file *filep,
ret = -ENOTTY; ret = -ENOTTY;
} }
leave_cancellation_point();
return ret; return ret;
} }