mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-05 13:11:34 +00:00
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:
committed by
Gedare Bloom
parent
ba5ebfc3c7
commit
71b2bc55bd
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user