mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
qemu: remove redundant code
It looks to be left over due to merge conflicts. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
parent
244917c99d
commit
568b65c275
@ -416,21 +416,6 @@ func (q *qemu) createSandbox() error {
|
|||||||
return fmt.Errorf("UUID should not be empty")
|
return fmt.Errorf("UUID should not be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
monitorSockPath, err := q.qmpSocketPath(q.id)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
q.qmpMonitorCh = qmpChannel{
|
|
||||||
ctx: context.Background(),
|
|
||||||
path: monitorSockPath,
|
|
||||||
}
|
|
||||||
|
|
||||||
err = os.MkdirAll(filepath.Dir(monitorSockPath), dirMode)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
qmpSockets, err := q.createQmpSocket()
|
qmpSockets, err := q.createQmpSocket()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user