From af7bb9eee274610bef414eaa97e7686d66d2f352 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 11 Feb 2017 02:32:12 +0100 Subject: [PATCH] Remove useless else --- ptyas.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ptyas.c b/ptyas.c index ab99f8e..a67f876 100644 --- a/ptyas.c +++ b/ptyas.c @@ -217,9 +217,8 @@ static void proxy_input_between_ttys(int pty_master, int ctty, volatile pid_t *p if (ppoll(fds, nfds, NULL /* no timeout */, &sigset_old) == -1) { if (errno == EAGAIN || errno == EINTR) { continue; - } else { - perror("poll"); } + perror("poll"); break; } -- 2.45.2