Remove remaining redundant casts

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
Agathiyan Bragadeesh 2023-07-25 12:28:59 +01:00
parent d298b76421
commit 93a859341b

View file

@ -748,14 +748,14 @@ int mbedtls_test_psa_exported_key_sanity_check(
MBEDTLS_ASN1_SEQUENCE |
MBEDTLS_ASN1_CONSTRUCTED),
0);
TEST_EQUAL(len, (uintptr_t) end - (uintptr_t) p);
TEST_EQUAL(len, end - p);
if (!mbedtls_test_asn1_skip_integer(&p, end, bits, bits, 1)) {
goto exit;
}
if (!mbedtls_test_asn1_skip_integer(&p, end, 2, bits, 1)) {
goto exit;
}
TEST_EQUAL((uintptr_t) p - (uintptr_t) end, 0);
TEST_EQUAL(p - end, 0);
TEST_ASSERT(exported_length <=