From: Matt Caswell Date: Mon, 22 Aug 2016 22:53:09 +0000 (+0100) Subject: Remove some dead code X-Git-Tag: OpenSSL_1_1_0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6231e9c7baec688792e043d12508e608545fffb;p=thirdparty%2Fopenssl.git Remove some dead code The assignment to ret is dead, because ret is assigned again later. Reviewed-by: Tim Hudson --- diff --git a/crypto/bio/bf_buff.c b/crypto/bio/bf_buff.c index 702581e4cde..b2a387b53a9 100644 --- a/crypto/bio/bf_buff.c +++ b/crypto/bio/bf_buff.c @@ -365,7 +365,6 @@ static long buffer_ctrl(BIO *b, int cmd, long num, void *ptr) } else { ctx->obuf_len = 0; ctx->obuf_off = 0; - ret = 1; break; } } diff --git a/crypto/bio/bf_lbuf.c b/crypto/bio/bf_lbuf.c index ed25b1f6c1d..b3c2b5eeb65 100644 --- a/crypto/bio/bf_lbuf.c +++ b/crypto/bio/bf_lbuf.c @@ -270,7 +270,6 @@ static long linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr) ctx->obuf_len -= r; } else { ctx->obuf_len = 0; - ret = 1; break; } }