mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
runtime: Remove redundant check in checkPCIeConfig
There is no way for this branch to be hit, as port is only set when it is different than config.NoPort. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
7c4e73b609
commit
bfc93927fb
@ -1712,10 +1712,6 @@ func checkPCIeConfig(coldPlug config.PCIePort, hotPlug config.PCIePort, machineT
|
||||
if hotPlug != config.NoPort {
|
||||
port = hotPlug
|
||||
}
|
||||
if port == config.NoPort {
|
||||
return fmt.Errorf("invalid vfio_port=%s setting, use on of %s, %s, %s",
|
||||
port, config.BridgePort, config.RootPort, config.SwitchPort)
|
||||
}
|
||||
if port == config.BridgePort || port == config.RootPort || port == config.SwitchPort {
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user