Merge pull request #444 from mars1024/bugfix/ptp_redundant

ptp: remove some redundant lines
This commit is contained in:
Dan Williams 2020-01-29 10:23:06 -06:00 committed by GitHub
commit 8bf6a7b362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}