mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
pci: drop a useless check
The end_addr is a 64-bit value which cannot possibly be larger than u64::max_value(). Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
319538fbed
commit
0816c8292f
@ -757,10 +757,6 @@ impl PciConfiguration {
|
||||
return Err(Error::BarInvalid64(bar_idx));
|
||||
}
|
||||
|
||||
if end_addr > u64::max_value() {
|
||||
return Err(Error::BarAddressInvalid(config.addr, config.size));
|
||||
}
|
||||
|
||||
if self.bars[bar_idx + 1].used {
|
||||
return Err(Error::BarInUse64(bar_idx));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user