From: Simon Ruderich Date: Sat, 11 Feb 2017 01:32:12 +0000 (+0100) Subject: Remove useless else X-Git-Tag: 0.1~13 X-Git-Url: https://ruderich.org/simon/gitweb/?p=ptyas%2Fptyas.git;a=commitdiff_plain;h=af7bb9eee274610bef414eaa97e7686d66d2f352 Remove useless else --- 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; }