From: Pauli Date: Mon, 17 Jan 2022 05:49:58 +0000 (+1100) Subject: speed: rework if condition to avoid empty statement X-Git-Tag: openssl-3.2.0-alpha1~3058 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a09a342ffb459d0913954111b7802815e9a3481a;p=thirdparty%2Fopenssl.git speed: rework if condition to avoid empty statement Reviewed-by: Tim Hudson Reviewed-by: Bernd Edlinger Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/17528) --- diff --git a/apps/speed.c b/apps/speed.c index 0ee7347f5ba..02e7b1f9b2c 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -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); }