mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
vc: Remove unused variable NumInterfaces
Remove unsed variable, the variable is set just in one place, and never is used again. Fixes: #603 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
@@ -152,9 +152,7 @@ func newTestSandboxConfigHyperstartAgentCNMNetwork() SandboxConfig {
|
||||
PostStopHooks: []Hook{},
|
||||
}
|
||||
|
||||
netConfig := NetworkConfig{
|
||||
NumInterfaces: len(hooks.PreStartHooks),
|
||||
}
|
||||
netConfig := NetworkConfig{}
|
||||
|
||||
sandboxConfig := SandboxConfig{
|
||||
ID: testSandboxID,
|
||||
@@ -1980,9 +1978,7 @@ func createNewSandboxConfig(hType HypervisorType, aType AgentType, aConfig inter
|
||||
HypervisorPath: "/usr/bin/qemu-system-x86_64",
|
||||
}
|
||||
|
||||
netConfig := NetworkConfig{
|
||||
NumInterfaces: 1,
|
||||
}
|
||||
netConfig := NetworkConfig{}
|
||||
|
||||
return SandboxConfig{
|
||||
ID: testSandboxID,
|
||||
|
||||
Reference in New Issue
Block a user