diff options
author | Daniel Mack <github@zonque.org> | 2015-09-09 15:12:28 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-09 15:12:28 +0200 |
commit | d7acddde057d25a4fb7835943ef3c73f262ba54f (patch) | |
tree | cb6e0ab245a4ed43f1367b8164b8022f0e77fc13 /src/shared/pty.c | |
parent | 02736a9abce02eb53b0d504f96fc7b3e4f077020 (diff) | |
parent | 57255510c95ca3369d241502f26d7bbd8fac30a6 (diff) |
Merge pull request #1216 from poettering/coccinelle-fixes-2
Coccinelle fixes 2
Diffstat (limited to 'src/shared/pty.c')
-rw-r--r-- | src/shared/pty.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/pty.c b/src/shared/pty.c index a87b3ce6f0..35d9ff5f4d 100644 --- a/src/shared/pty.c +++ b/src/shared/pty.c @@ -311,9 +311,8 @@ static int pty_dispatch_read(Pty *pty) { continue; return (errno == EAGAIN) ? 0 : -errno; - } else if (len == 0) { + } else if (len == 0) continue; - } /* set terminating zero for debugging safety */ pty->in_buf[len] = 0; @@ -356,9 +355,8 @@ static int pty_dispatch_write(Pty *pty) { continue; return (errno == EAGAIN) ? 1 : -errno; - } else if (len == 0) { + } else if (len == 0) continue; - } ring_pull(&pty->out_buf, (size_t)len); } |