]> ruderich.org/simon Gitweb - ptyas/ptyas.git/commitdiff
Remove useless else
authorSimon Ruderich <simon@ruderich.org>
Sat, 11 Feb 2017 01:32:12 +0000 (02:32 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 11 Feb 2017 01:32:12 +0000 (02:32 +0100)
ptyas.c

diff --git a/ptyas.c b/ptyas.c
index ab99f8ede71cf352d4d7aa2ef9c2af83a5b4ef06..a67f8767cbb4e49a59df74bdcd59ff63df839828 100644 (file)
--- 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;
         }