ptp: remove some redundant lines
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
This commit is contained in:
parent
832f2699c2
commit
45fd949465
@ -228,7 +228,7 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
}
|
||||
defer netns.Close()
|
||||
|
||||
hostInterface, containerInterface, err := setupContainerVeth(netns, args.IfName, conf.MTU, result)
|
||||
hostInterface, _, err := setupContainerVeth(netns, args.IfName, conf.MTU, result)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -254,8 +254,6 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
result.DNS = conf.DNS
|
||||
}
|
||||
|
||||
result.Interfaces = []*current.Interface{hostInterface, containerInterface}
|
||||
|
||||
return types.PrintResult(result, conf.CNIVersion)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user