summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-08-22 23:53:09 +0100
committerMatt Caswell <matt@openssl.org>2016-08-23 00:19:15 +0100
commitc6231e9c7baec688792e043d12508e608545fffb (patch)
tree894fd122a9e3634299930beb8cfa3570f99ed02f /crypto
parenta36c5eabf589aef716966fbbc8772ead1205abd7 (diff)
Remove some dead code
The assignment to ret is dead, because ret is assigned again later. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bf_buff.c1
-rw-r--r--crypto/bio/bf_lbuf.c1
2 files changed, 0 insertions, 2 deletions
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;
}
}