diff --git a/drivers/serial/pty.c b/drivers/serial/pty.c index d540983448..99c7514880 100644 --- a/drivers/serial/pty.c +++ b/drivers/serial/pty.c @@ -944,8 +944,6 @@ static int pty_poll(FAR struct file *filep, FAR struct pollfd *fds, return ret; } - ret = -ENOSYS; - if (setup) { for (i = 0; i < CONFIG_DEV_PTY_NPOLLWAITERS; i++)