diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index b3ea7e6881..0ae62730d9 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -500,20 +500,6 @@ static int uart_tcsendbreak(FAR uart_dev_t *dev, FAR struct file *filep, { 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 * beginning the Break to avoid corrupting the transmit data? If so, note * 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; } - leave_cancellation_point(); return ret; }