security/hal: fix meaningless condition check
len is uint32 so it is always less than 0xffffffff
WGID : 390626
@@ -396,7 +396,6 @@ static int hal_asn1_write_len(unsigned char **p, unsigned char *start, uint32_t
return 4;
}
- if (len <= 0xFFFFFFFF) {
if (*p - start < 5) {
return -HAL_INVALID_ARGS;
}
@@ -409,9 +408,6 @@ static int hal_asn1_write_len(unsigned char **p, unsigned char *start, uint32_t
return 5;
}
- return -HAL_INVALID_ARGS;
-}
-
static int hal_asn1_write_mpi(unsigned char **p, unsigned char *start, const hal_mpi *X)
{
int ret;
