commit | ebcd78561c95c97fc9876a24a55727e89368c169 | [log] [tgz] |
---|---|---|
author | Dave Rodgman <dave.rodgman@arm.com> | Wed Aug 09 18:56:42 2023 +0100 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Wed Aug 09 18:57:22 2023 +0100 |
tree | c01e2484a42100c38e15fcb662329cc529c32b85 | |
parent | fa703e38a24bf8c2a61c644b375b8c6515778d53 [diff] [blame] |
Remove redundant code in mbedtls_mpi_cmp_abs Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/bignum.c b/library/bignum.c index bf16ec1..d53a484 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -817,9 +817,8 @@ } } - if (i == 0 && j == 0) { - return 0; - } + /* If i == j == 0, i.e. abs(X) == abs(Y), + * we end up returning 0 at the end of the function. */ if (i > j) { return 1;