diff options
author | Ross Kinsey <RossIKinsey@gmail.com> | 2020-02-05 04:47:05 +0100 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-02-05 04:47:05 +0100 |
commit | 8f2fe32df26244da7c76ecc691e29c0777648d21 (patch) | |
tree | 0501cc74448011ed4e248b1297a5fb68d1f39631 /crypto/bio/bf_buff.c | |
parent | x86: Add endbranch to indirect branch targets for Intel CET (diff) | |
download | openssl-8f2fe32df26244da7c76ecc691e29c0777648d21.tar.xz openssl-8f2fe32df26244da7c76ecc691e29c0777648d21.zip |
Author: Ross Kinsey <RossIKinsey@gmail.com>
Date: Wed Jan 29 00:19:40 2020 -0500
Removed unnecessary switch statements from bio/bf_* callback_ctrl functions
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10967)
Diffstat (limited to 'crypto/bio/bf_buff.c')
-rw-r--r-- | crypto/bio/bf_buff.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/bio/bf_buff.c b/crypto/bio/bf_buff.c index 80db0b57ab..df7c5e99ba 100644 --- a/crypto/bio/bf_buff.c +++ b/crypto/bio/bf_buff.c @@ -410,16 +410,9 @@ static long buffer_ctrl(BIO *b, int cmd, long num, void *ptr) static long buffer_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) { - long ret = 1; - if (b->next_bio == NULL) return 0; - switch (cmd) { - default: - ret = BIO_callback_ctrl(b->next_bio, cmd, fp); - break; - } - return ret; + return BIO_callback_ctrl(b->next_bio, cmd, fp); } static int buffer_gets(BIO *b, char *buf, int size) |