speed: rework if condition to avoid empty statement
authorPauli <pauli@openssl.org>
Mon, 17 Jan 2022 05:49:58 +0000 (16:49 +1100)
committerPauli <pauli@openssl.org>
Tue, 18 Jan 2022 04:10:38 +0000 (15:10 +1100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17528)

apps/speed.c

index 0ee7347f5ba9cd2935e1d2dc7f5f61bfdfbc8a57..02e7b1f9b2c5ba8552b4aaa5607d807d3dea9778 100644 (file)
@@ -3551,9 +3551,7 @@ static int do_multi(int multi, int size_num)
                 d = atof(sstrsep(&p, sep));
                 ffdh_results[k][0] += d;
 # endif /* OPENSSL_NO_DH */
-            } else if (HAS_PREFIX(buf, "+H:")) {
-                ;
-            } else {
+            } else if (!HAS_PREFIX(buf, "+H:")) {
                 BIO_printf(bio_err, "Unknown type '%s' from child %d\n", buf,
                            n);
             }