mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-07 12:29:56 +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>
(cherry picked from commit bfc93927fb
)
This commit is contained in:
parent
d86af5923f
commit
18a8b8df03
@ -1712,10 +1712,6 @@ func checkPCIeConfig(coldPlug config.PCIePort, hotPlug config.PCIePort, machineT
|
|||||||
if hotPlug != config.NoPort {
|
if hotPlug != config.NoPort {
|
||||||
port = hotPlug
|
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 {
|
if port == config.BridgePort || port == config.RootPort || port == config.SwitchPort {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user