mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-03 00:39:57 +00:00
Remove redundant code in mbedtls_mpi_cmp_abs
Signed-off-by: Dave Rodgman <[email protected]>
This commit is contained in:
+2
-3
@@ -817,9 +817,8 @@ int mbedtls_mpi_cmp_abs(const mbedtls_mpi *X, const mbedtls_mpi *Y)
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user