bsps/riscv/niosv/.../altera_epcq_driver.c: Address type-limits warnings

These changes were made to address GCC -Wtype-limits warnings.
In this case, the values being checked were all unsigned and
the checks redundant.
This commit is contained in:
Joel Sherrill
2025-11-24 17:43:33 -06:00
committed by Gedare Bloom
parent ba5ebfc3c7
commit 71b2bc55bd

View File

@@ -834,9 +834,7 @@ static inline int alt_epcq_validate_read_write_arguments (
/* make sure start and end address is less then the end address of the flash */
if (
start_address >= epcq_flash_info->data_end ||
end_address > epcq_flash_info->data_end ||
offset < 0 ||
length < 0
end_address > epcq_flash_info->data_end
) {
return -EINVAL;
}