notify_socket: setupSpec: drop ctx arg and return value

Those were never used (ctx was added by the initial commit, and
error was added by commit 25fd4a6757).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-11-29 19:48:03 -08:00
parent 741568ebf1
commit 86733013cc
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -387,9 +387,7 @@ func startContainer(context *cli.Context, action CtAct, criuOpts *libcontainer.C
notifySocket := newNotifySocket(context, os.Getenv("NOTIFY_SOCKET"), id)
if notifySocket != nil {
if err := notifySocket.setupSpec(context, spec); err != nil {
return -1, err
}
notifySocket.setupSpec(spec)
}
container, err := createContainer(context, id, spec)