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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6231e9c7baec688792e043d12508e608545fffb;p=openssl 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 702581e4cd..b2a387b53a 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 ed25b1f6c1..b3c2b5eeb6 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; } }