Remove unneeded switch statement to fix warning
[openssl.git] / crypto / evp / bio_b64.c
index aef9a85459b3a0b45ab1c5a4f35d48bafccefa7e..5f9d3f094bc0507ed819a0980a3753c138a1f404 100644 (file)
@@ -534,17 +534,12 @@ static long b64_ctrl(BIO *b, int cmd, long num, void *ptr)
 
 static long b64_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);
 }
 
 static int b64_puts(BIO *b, const char *str)