From 1f2235ea4e48a48f0c06406c22c8ae31a6ccaae6 Mon Sep 17 00:00:00 2001 From: "Dane (4cad@silvertoque)" Date: Tue, 18 Feb 2020 21:38:12 -0500 Subject: Remove unneeded switch statement to fix warning https://github.com/openssl/openssl/issues/10958 CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/11125) --- crypto/evp/bio_enc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'crypto/evp/bio_enc.c') diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index 9fa10ebff6..e780135b3d 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -388,17 +388,12 @@ static long enc_ctrl(BIO *b, int cmd, long num, void *ptr) static long enc_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) { - long ret = 1; BIO *next = BIO_next(b); if (next == NULL) return 0; - switch (cmd) { - default: - ret = BIO_callback_ctrl(next, cmd, fp); - break; - } - return ret; + + return BIO_callback_ctrl(next, cmd, fp); } int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, -- cgit v1.2.3