From ca2e44b48d767d6c7c96df42b1a36d0dcf3309dc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 26 Nov 2008 16:18:16 -0800 Subject: [PATCH] Simplify code in stream_recv(). There is no need to test whether retval is nonzero at this point in the code: we already know that it is negative from the two previous "if" branches. --- lib/vconn-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 966c24202..0b8526110 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -163,7 +163,7 @@ again: return EOF; } } else { - return retval ? errno : EAGAIN; + return errno; } } -- 2.45.2