Remove some dead code
authorMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 22:53:09 +0000 (23:53 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 23:19:15 +0000 (00:19 +0100)
The assignment to ret is dead, because ret is assigned again later.

Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/bio/bf_buff.c
crypto/bio/bf_lbuf.c

index 702581e4cdee437e7bba4a410e601ed9e09517ae..b2a387b53a9ff4c5a2aedb118fb635ffdfae8126 100644 (file)
@@ -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;
             }
         }
index ed25b1f6c1dffb6a830b71db5b7e84ead1a2cbab..b3c2b5eeb65e827bded01d1247b712a32376fd75 100644 (file)
@@ -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;
             }
         }