[PATCH 3/5] drivers/serial: imx: drop useless EWOULDBLOCK->EAGAIN remapping

Philippe Gerum rpm at xenomai.org
Wed Mar 20 16:44:23 CET 2019


Signed-off-by: Philippe Gerum <rpm at xenomai.org>
---
 kernel/drivers/serial/rt_imx_uart.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/kernel/drivers/serial/rt_imx_uart.c b/kernel/drivers/serial/rt_imx_uart.c
index 574fd1aa7..6118e29b7 100644
--- a/kernel/drivers/serial/rt_imx_uart.c
+++ b/kernel/drivers/serial/rt_imx_uart.c
@@ -1435,10 +1435,6 @@ static ssize_t rt_imx_uart_write(struct rtdm_fd *fd, const void *buf,
 				 */
 				ret = -EBADF;
 			}
-			if (ret == -EWOULDBLOCK) {
-				/* Fix error code for non-blocking mode. */
-				ret = -EAGAIN;
-			}
 			break;
 		}
 	}
-- 
2.20.1




More information about the Xenomai mailing list